From 97244ec63937f6c23990f73b054af3d450344bb8 Mon Sep 17 00:00:00 2001 From: zsxwing Date: Thu, 23 Jul 2015 02:09:25 +0800 Subject: [PATCH] Make sbt build the assembly test jar for streaming mqtt --- project/SparkBuild.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/project/SparkBuild.scala b/project/SparkBuild.scala index 7555aa5e3861e..454678e5fbc28 100644 --- a/project/SparkBuild.scala +++ b/project/SparkBuild.scala @@ -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) @@ -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