diff options
Diffstat (limited to 'pnda-ztt-app/assembly.sbt')
-rw-r--r-- | pnda-ztt-app/assembly.sbt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pnda-ztt-app/assembly.sbt b/pnda-ztt-app/assembly.sbt new file mode 100644 index 0000000..7c9c71f --- /dev/null +++ b/pnda-ztt-app/assembly.sbt @@ -0,0 +1,27 @@ +import AssemblyKeys._ + +assemblySettings + +jarName in assembly := "PndaZTTApp.jar" + +target in assembly:= file("src/universal/sparkStreaming/PndaZTTApp") + +mergeStrategy in assembly := { + case PathList("META-INF", "jboss-beans.xml") => MergeStrategy.first + case PathList("META-INF", "mailcap") => MergeStrategy.discard + case PathList("META-INF", "maven", "org.slf4j", "slf4j-api", xa @ _*) => MergeStrategy.rename + case PathList("META-INF", "ECLIPSEF.RSA") => MergeStrategy.discard + case PathList("META-INF", "mimetypes.default") => MergeStrategy.first + case PathList("com", "datastax", "driver", "core", "Driver.properties") => MergeStrategy.last + case PathList("com", "esotericsoftware", "minlog", xx @ _*) => MergeStrategy.first + case PathList("plugin.properties") => MergeStrategy.discard + case PathList("javax", "activation", xw @ _*) => MergeStrategy.first + case PathList("org", "apache", "hadoop", "yarn", xv @ _*) => MergeStrategy.first + case PathList("org", "apache", "commons", xz @ _*) => MergeStrategy.first + case PathList("org", "jboss", "netty", ya @ _*) => MergeStrategy.first + case PathList("org", "apache", "spark", ya @ _*) => MergeStrategy.first + case x => { + val oldStrategy = (mergeStrategy in assembly).value + oldStrategy(x) + } +} |