Skip to content
Permalink
Browse files

Fix duplicate content of native resources.

  • Loading branch information...
exoego committed Aug 3, 2019
1 parent c8b1437 commit d6c31936842290dce559d82cb8be07eba12652fd
Showing with 11 additions and 0 deletions.
  1. +11 −0 build.sbt
@@ -54,6 +54,17 @@ lazy val core = myCrossProject("core")
Dependencies.scalaTest % Test
),
assembly / test := {},
assemblyMergeStrategy in assembly := {
val nativeSuffix = "\\.(?:dll|jnilib|so)$".r

{
case PathList(ps @ _*) if nativeSuffix.findFirstMatchIn(ps.last).isDefined =>
MergeStrategy.first
case otherwise =>
val defaultStrategy = (assemblyMergeStrategy in assembly).value
defaultStrategy(otherwise)
}
},
buildInfoKeys := Seq[BuildInfoKey](scalaVersion, sbtVersion),
buildInfoPackage := moduleRootPkg.value,
initialCommands += s"""

0 comments on commit d6c3193

Please sign in to comment.
You can’t perform that action at this time.