Skip to content

Commit

Permalink
Publish pekko-grpc-scalaph-protoc-plugin for Scala 2.13 (#327)
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 authored Jun 16, 2024
1 parent 9e9d8ba commit d486106
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 d486106

Please sign in to comment.