diff --git a/build.sbt b/build.sbt index 45c4f76f..750e5e69 100644 --- a/build.sbt +++ b/build.sbt @@ -71,6 +71,10 @@ lazy val codegen = Project(id = "codegen", base = file("codegen")) (assembly / mainClass) := Some("org.apache.pekko.grpc.gen.Main"), (assembly / assemblyOption) := (assembly / assemblyOption).value.withPrependShellScript( Some(sbtassembly.AssemblyPlugin.defaultUniversalScript(shebang = true))), + (assembly / assemblyMergeStrategy) := { + case PathList("META-INF", "versions", _*) => MergeStrategy.discard + case _ => MergeStrategy.first + }, crossScalaVersions := Dependencies.Versions.CrossScalaForPlugin, scalaVersion := scala212, Compile / unmanagedSourceDirectories ++= { @@ -101,11 +105,7 @@ 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, - assembly / assemblyMergeStrategy := { - case PathList("META-INF", "versions", _*) => MergeStrategy.discard - case _ => MergeStrategy.first - }) + PB.protocVersion := Dependencies.Versions.googleProtoc) .enablePlugins(org.apache.pekko.grpc.build.ReflectiveCodeGen) .enablePlugins(ReproducibleBuildsPlugin)