These are chat archives for sbt/sbt-assembly

21st
Jul 2016
bjdas
@bjdas
Jul 21 2016 21:08
I have a exclude jar @ assembly setting . However , still I see zookeeper class file insdie the final assembly jar
excludedJars in assembly <<= (fullClasspath in assembly) map {
_ filter { cp =>
List("junit",
"mockito",
"org.apache.spark",
"org.apache.zookeeper",
"hadoop",
"mesos",
"jetty",
"snappy",
"curator",
"parquet").exists(cp.data.getName.startsWith(_))
}
},
mergeStrategy in assembly := {
case m if m.toLowerCase.endsWith("manifest.mf") =>
MergeStrategy.discard
case m if m.toLowerCase.matches("meta-inf.*\.sf$") =>
MergeStrategy.discard
case "reference.conf" => MergeStrategy.concat
case _ => MergeStrategy.first
}
)