This is an automated email from the ASF dual-hosted git repository.

engelen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new d4861067 Publish `pekko-grpc-scalaph-protoc-plugin` for Scala 2.13 
(#327)
d4861067 is described below

commit d4861067a249a2b9ecaec804a901f25e588f4df6
Author: Arnout Engelen <[email protected]>
AuthorDate: Sun Jun 16 18:21:47 2024 +0200

    Publish `pekko-grpc-scalaph-protoc-plugin` for Scala 2.13 (#327)
    
    And make the dependency tree leaner.
    
    Fixes #325 (though the use case is still somewhat unclear)
---
 build.sbt | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/build.sbt b/build.sbt
index 775f16a9..2d9f36a0 100644
--- a/build.sbt
+++ b/build.sbt
@@ -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)
@@ -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)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to