Skip to content

Commit

Permalink
try to fix issue with sbt-assembly and duplicate classes
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Aug 11, 2024
1 parent 19a860d commit 964a0fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ lazy val runtime = Project(id = "runtime", base = file("runtime"))
AutomaticModuleName.settings("pekko.grpc.runtime"),
ReflectiveCodeGen.generatedLanguages := Seq("Scala"),
ReflectiveCodeGen.extraGenerators := Seq("ScalaMarshallersCodeGenerator"),
PB.protocVersion := Dependencies.Versions.googleProtoc)
PB.protocVersion := Dependencies.Versions.googleProtoc,
assemblyMergeStrategy in assembly := {
case PathList("META-INF", "versions", "9", "module-info.class") => MergeStrategy.discard
case _ => MergeStrategy.first
})
.enablePlugins(org.apache.pekko.grpc.build.ReflectiveCodeGen)
.enablePlugins(ReproducibleBuildsPlugin)

Expand Down

0 comments on commit 964a0fe

Please sign in to comment.