Skip to content

Commit

Permalink
Make sbt build the assembly test jar for streaming mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
zsxwing committed Jul 22, 2015
1 parent 80474d1 commit 97244ec
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions project/SparkBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ object SparkBuild extends PomBuild {
/* Enable Assembly for all assembly projects */
assemblyProjects.foreach(enable(Assembly.settings))

/* Enable Assembly for streamingMqtt test */
enable(inConfig(Test)(Assembly.settings))(streamingMqtt)

/* Package pyspark artifacts in a separate zip file for YARN. */
enable(PySparkAssembly.settings)(assembly)

Expand Down Expand Up @@ -354,6 +357,9 @@ object Assembly {
s"${mName}-${v}-hadoop${hv}.jar"
}
},
jarName in (Test, assembly) <<= (version, moduleName, hadoopVersion) map { (v, mName, hv) =>
s"${mName}-test-${v}.jar"
},
mergeStrategy in assembly := {
case PathList("org", "datanucleus", xs @ _*) => MergeStrategy.discard
case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard
Expand Down

0 comments on commit 97244ec

Please sign in to comment.