Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- excludedJars in assembly <<= (fullClasspath in assembly) map { cp =>
- val excludes = Set(
- "junit-4.5.jar", // We shouldn't need JUnit
- "jsp-api-2.1-6.1.14.jar",
- "jsp-2.1-6.1.14.jar",
- "jasper-compiler-5.5.12.jar",
- "minlog-1.2.jar", // Otherwise causes conflicts with Kyro (which bundles it)
- "janino-2.5.16.jar", // Janino includes a broken signature, and is not needed anyway
- "commons-beanutils-core-1.8.0.jar", // Clash with each other and with commons-collections
- "commons-beanutils-1.7.0.jar", // "
- "hadoop-tools-0.20.2.jar",
- "guava-14.0.1.jar", // conflict spark-network-common_2.10-1.3.0.jar
- "jcl-over-slf4j-1.7.10.jar", //conflict commons-logging-1.1.3.jar
- "hadoop-yarn-api-2.2.0.jar",
- "bigtable-protos-0.3.0.jar", //conflict grpc-core-proto-0.0.3.jar
- "datastore-v1-protos-1.0.1.jar" //conflict grpc-core-proto-0.0.3.jar
- "appengine-api-1.0-sdk-1.9.34.jar",
- "guava-jdk5-17.0.jar"
- )
- cp filter { jar => excludes(jar.data.getName) }
- },
- mergeStrategy in assembly <<= (mergeStrategy in assembly) {
- (old) => {
- case x if x.contains("UnusedStubClass.class") => MergeStrategy.first
- case x if x.endsWith("project.clj") => MergeStrategy.discard // Leiningen build files
- case x if x.startsWith("META-INF") => MergeStrategy.discard // More bumf
- case x if x.endsWith(".html") => MergeStrategy.discard
- case x if x.startsWith("com/google/cloud/bigtable/") => MergeStrategy.last
- case x if x.startsWith("com/google/longrunning/") => MergeStrategy.last
- case x if x.startsWith("com/google/rpc/") => MergeStrategy.last
- case x if x.startsWith("com/google/type/") => MergeStrategy.last
- case x if x.startsWith("google/protobuf/") => MergeStrategy.last
- case x => old(x)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement