Skip to content

Commit 97244ec

Browse files
committed
Make sbt build the assembly test jar for streaming mqtt
1 parent 80474d1 commit 97244ec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

project/SparkBuild.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ object SparkBuild extends PomBuild {
177177
/* Enable Assembly for all assembly projects */
178178
assemblyProjects.foreach(enable(Assembly.settings))
179179

180+
/* Enable Assembly for streamingMqtt test */
181+
enable(inConfig(Test)(Assembly.settings))(streamingMqtt)
182+
180183
/* Package pyspark artifacts in a separate zip file for YARN. */
181184
enable(PySparkAssembly.settings)(assembly)
182185

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

0 commit comments

Comments
 (0)