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

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


The following commit(s) were added to refs/heads/main by this push:
     new 1edf6452 use sbt-pekko-build to allow testing with pekko/pekko-http 
snapshots (#203)
1edf6452 is described below

commit 1edf645204e36cf18d8b2e86416d207c6db68ef3
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Dec 27 09:26:18 2023 +0100

    use sbt-pekko-build to allow testing with pekko/pekko-http snapshots (#203)
    
    * use sbt-pekko-build to allow testing with pekko/pekko-http snapshots
    
    * Update build.sbt
---
 build.sbt                  | 9 +++++++++
 project/Dependencies.scala | 9 +++++----
 project/plugins.sbt        | 1 +
 3 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/build.sbt b/build.sbt
index dace6e6b..63539774 100644
--- a/build.sbt
+++ b/build.sbt
@@ -20,6 +20,7 @@ ThisBuild / apacheSonatypeProjectProfile := "pekko"
 sourceDistName := "apache-pekko-grpc"
 sourceDistIncubating := true
 ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)
+ThisBuild / resolvers += Resolver.ApacheMavenSnapshotsRepo
 
 commands := commands.value.filterNot { command =>
   command.nameOption.exists { name =>
@@ -313,3 +314,11 @@ lazy val root = Project(id = "pekko-grpc", base = 
file("."))
     crossScalaVersions := Nil,
     scalaVersion := scala212)
   .enablePlugins(NoPublish)
+
+Global / onLoad := (Global / onLoad).value.andThen { s =>
+  val v = version.value
+  val log = sLog.value
+  log.info(
+    s"Building Pekko gRPC $v against Pekko ${Dependencies.Versions.pekko} and 
Pekko HTTP ${Dependencies.Versions.pekkoHttp}")
+  s
+}
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 27ee41f8..b307d0fa 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -12,6 +12,7 @@ package org.apache.pekko.grpc
 import sbt._
 import sbt.Keys._
 import buildinfo.BuildInfo
+import com.github.pjfanning.pekkobuild.{ PekkoDependency, PekkoHttpDependency }
 
 object Dependencies {
   object Versions {
@@ -27,10 +28,10 @@ object Dependencies {
     // We don't force Pekko updates because downstream projects can upgrade
     // themselves. For more information see
     // 
https://pekko.apache.org//docs/pekko/current/project/downstream-upgrade-strategy.html
-    val pekko = "1.0.2"
-    val pekkoBinary = "1.0"
-    val pekkoHttp = "1.0.0"
-    val pekkoHttpBinary = "1.0"
+    val pekko = PekkoDependency.pekkoVersion
+    val pekkoBinary = pekko.take(3)
+    val pekkoHttp = PekkoHttpDependency.pekkoHttpVersion
+    val pekkoHttpBinary = pekkoHttp.take(3)
 
     val grpc = "1.54.2" // checked synced by VersionSyncCheckPlugin
     // Even referenced explicitly in the sbt-plugin's sbt-tests
diff --git a/project/plugins.sbt b/project/plugins.sbt
index bedb9c5b..f52247a7 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -26,6 +26,7 @@ addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.31")
 addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
 addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
 addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.10")
+addSbtPlugin("com.github.pjfanning" % "sbt-pekko-build" % "0.2.0")
 addSbtPlugin("com.github.pjfanning" % "sbt-source-dist" % "0.1.11")
 addSbtPlugin("com.github.sbt" % "sbt-license-report" % "1.6.1")
 


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

Reply via email to