Friday, February 14, 2020

[sbt] If your jar file fails executing because of dependency issue

(keep in mind that this is for sbt 1.3.8)

1. get your sbt-assmebly matches your Scala version: https://github.com/sbt/sbt-assembly
2. add the following to your build.sbt file:
assemblyMergeStrategy in assembly := {
 case PathList("META-INF", xs @ _*) => MergeStrategy.discard
 case x => MergeStrategy.first
}
3. that's it! now run $sbt assembly



Reference:
https://stackoverflow.com/questions/25144484/sbt-assembly-deduplication-found-error

No comments:

Post a Comment