Skip to content

Commit

Permalink
concat module-info.class files of dependencies in fat jar
Browse files Browse the repository at this point in the history
  • Loading branch information
fm3 committed Oct 10, 2023
1 parent 19287a7 commit a9da078
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ Compile / mainClass := Some("com.scalableminds.fossildb.FossilDB")

assembly / assemblyMergeStrategy := {
case x if x.endsWith("io.netty.versions.properties") => MergeStrategy.first
// compare https://stackoverflow.com/questions/54834125/sbt-assembly-deduplicate-module-info-class
case x if x.endsWith("module-info.class") => MergeStrategy.concat
case x =>
val oldStrategy = (assembly / assemblyMergeStrategy).value
oldStrategy(x)
Expand Down

0 comments on commit a9da078

Please sign in to comment.