Skip to content

Commit

Permalink
skip module-info in assembly
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren committed Jan 28, 2025
1 parent a18b573 commit eeece69
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ lazy val codegen = Project(id = akkaGrpcCodegenId, base = file("codegen"))
(assembly / mainClass) := Some("akka.grpc.gen.Main"),
(assembly / assemblyOption) := (assembly / assemblyOption).value.withPrependShellScript(
Some(sbtassembly.AssemblyPlugin.defaultUniversalScript(shebang = true))),
assemblyMergeStrategy := {
case x if x.endsWith("module-info.class") => MergeStrategy.discard
case x =>
val oldStrategy = (ThisBuild / assemblyMergeStrategy).value
oldStrategy(x)
},
crossScalaVersions := Dependencies.Versions.CrossScalaForPlugin,
scalaVersion := Dependencies.Versions.CrossScalaForPlugin.head)
.settings(addArtifact((Compile / assembly / artifact), assembly))
Expand Down

0 comments on commit eeece69

Please sign in to comment.