Skip to content

Commit

Permalink
Publish pekko-grpc-scalaph-protoc-plugin for Scala 2.13
Browse files Browse the repository at this point in the history
And make the dependency tree leaner.

Fixes #325 (though the use case is still somewhat unclear)
  • Loading branch information
raboof committed Jun 12, 2024
1 parent 61e1097 commit ca52618
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,11 @@ lazy val runtime = Project(id = "runtime", base = file("runtime"))
val pekkoGrpcProtocPluginId = s"$pekkoPrefix-scalapb-protoc-plugin"
lazy val scalapbProtocPlugin = Project(id = "scalapb-protoc-plugin", base = file("scalapb-protoc-plugin"))
.disablePlugins(MimaPlugin)
/** TODO we only really need to depend on scalapb */
.dependsOn(codegen)
.settings(
name := s"$pekkoPrefix-scalapb-protoc-plugin",
libraryDependencies += {
Dependencies.Compile.scalapbCompilerPlugin
},
mkBatAssemblyTask := {
val file = assembly.value
Assemblies.mkBatAssembly(file)
Expand All @@ -125,8 +126,8 @@ lazy val scalapbProtocPlugin = Project(id = "scalapb-protoc-plugin", base = file
(assembly / assemblyOption) := (assembly / assemblyOption).value.withPrependShellScript(
Some(sbtassembly.AssemblyPlugin.defaultUniversalScript(shebang = true))))
.settings(
crossScalaVersions := Dependencies.Versions.CrossScalaForPlugin,
scalaVersion := Dependencies.Versions.CrossScalaForPlugin.head)
crossScalaVersions := Dependencies.Versions.CrossScalaForLib,
scalaVersion := Dependencies.Versions.CrossScalaForLib.head)
.settings(addArtifact(Compile / assembly / artifact, assembly))
.settings(addArtifact(Artifact(pekkoGrpcProtocPluginId, "bat", "bat", "bat"), mkBatAssemblyTask))
.enablePlugins(ReproducibleBuildsPlugin)
Expand Down

0 comments on commit ca52618

Please sign in to comment.