+sbt Concat LICENSE in SbtMultiJvm assembly result.
Signed-off-by: He-Pin <hepin1989@gmail.com>
This commit is contained in:
parent
5cbda34cfc
commit
5a8f811d53
1 changed files with 5 additions and 4 deletions
|
|
@ -167,10 +167,11 @@ object MultiJvmPlugin extends AutoPlugin {
|
|||
// the first class wins just like a classpath
|
||||
// just concatenate conflicting text files
|
||||
assembly / assemblyMergeStrategy := {
|
||||
case n if n.endsWith(".class") => MergeStrategy.first
|
||||
case n if n.endsWith(".txt") => MergeStrategy.concat
|
||||
case n if n.endsWith("NOTICE") => MergeStrategy.concat
|
||||
case n => (assembly / assemblyMergeStrategy).value.apply(n)
|
||||
case n if n.endsWith(".class") => MergeStrategy.first
|
||||
case n if n.endsWith(".txt") => MergeStrategy.concat
|
||||
case n if n.endsWith("NOTICE") => MergeStrategy.concat
|
||||
case n if n.endsWith("LICENSE") => MergeStrategy.concat
|
||||
case n => (assembly / assemblyMergeStrategy).value.apply(n)
|
||||
},
|
||||
assembly / assemblyJarName := {
|
||||
name.value + "_" + scalaVersion.value + "-" + version.value + "-multi-jvm-assembly.jar"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue