Skip to content

Commit d540780

Browse files
committed
Add MergeStrategy
1 parent 55911f8 commit d540780

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sbt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ lazy val core = myCrossProject("core")
138138
// https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-core/2.12.6/jackson-core-2.12.6.jar:module-info.class
139139
// https/repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.12.6.1/jackson-databind-2.12.6.1.jar:module-info.class
140140
MergeStrategy.discard
141+
case PathList("META-INF", "sisu", "javax.inject.Named") =>
142+
// (core / assembly) deduplicate: different file contents found in the following:
143+
// https/repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/4.5.0/plexus-archiver-4.5.0.jar:META-INF/sisu/javax.inject.Named
144+
// https/repo1.maven.org/maven2/org/codehaus/plexus/plexus-io/3.4.0/plexus-io-3.4.0.jar:META-INF/sisu/javax.inject.Named
145+
MergeStrategy.first
141146
case otherwise =>
142147
val defaultStrategy = (assembly / assemblyMergeStrategy).value
143148
defaultStrategy(otherwise)

0 commit comments

Comments
 (0)