Skip to content

Commit

Permalink
sbt-assembly mergeStrategy enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
drakemin committed Mar 6, 2015
1 parent 3b29b2e commit cbfeed6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions project/BuildSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ object BuildSettings {
"servlet-api-2.5.jar"
)
cp filter { jar => excludes(jar.data.getName) }
}
},

// mergeStrategy in assembly <<= (mergeStrategy in assembly) {
// (old) => {
// // case "project.clj" => MergeStrategy.discard // Leiningen build files
// case x if x.startsWith("META-INF") => MergeStrategy.discard // Bumf
// case x if x.endsWith(".html") => MergeStrategy.discard // More bumf
// case PathList("com", "esotericsoftware", xs @ _*) => MergeStrategy.last // For Log$Logger.class
// case x => old(x)
// }
// }
mergeStrategy in assembly <<= (mergeStrategy in assembly) {
(old) => {
// case "project.clj" => MergeStrategy.discard // Leiningen build files
case x if x.startsWith("META-INF") => MergeStrategy.discard // Bumf
case x if x.startsWith("hadoop") && x.contains("2.2.0") => MergeStrategy.discard
case x if x.endsWith(".html") => MergeStrategy.discard // More bumf
case x if x.endsWith("package-info.class") => MergeStrategy.last
case PathList("com", "esotericsoftware", xs @ _*) => MergeStrategy.last // For Log$Logger.class
case x => old(x)
}
}
)

lazy val buildSettings = basicSettings ++ sbtAssemblySettings
Expand Down

0 comments on commit cbfeed6

Please sign in to comment.