summaryrefslogtreecommitdiffstats
path: root/pnda-ztt-app/assembly.sbt
blob: 7c9c71f32e6ffd50eb232fa5993b3aa324db81fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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)
  }
}