Skip to content

Commit 274e1c2

Browse files
author
Marcelo Vanzin
committed
Remove junit from assembly in sbt build also.
1 parent ad950be commit 274e1c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

project/SparkBuild.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ object SparkBuild extends Build {
322322
val excludeJruby = ExclusionRule(organization = "org.jruby")
323323
val excludeThrift = ExclusionRule(organization = "org.apache.thrift")
324324
val excludeServletApi = ExclusionRule(organization = "javax.servlet", artifact = "servlet-api")
325+
val excludeJUnit = ExclusionRule(organization = "junit")
325326

326327
def sparkPreviousArtifact(id: String, organization: String = "org.apache.spark",
327328
version: String = "1.0.0", crossVersion: String = "2.10"): Option[sbt.ModuleID] = {
@@ -466,7 +467,7 @@ object SparkBuild extends Build {
466467
previousArtifact := sparkPreviousArtifact("spark-mllib"),
467468
libraryDependencies ++= Seq(
468469
"org.jblas" % "jblas" % jblasVersion,
469-
"org.scalanlp" %% "breeze" % "0.7"
470+
"org.scalanlp" %% "breeze" % "0.7" excludeAll(excludeJUnit)
470471
)
471472
)
472473

0 commit comments

Comments
 (0)