Skip to content

Commit

Permalink
use sbt-pekko-build to allow testing with pekko/pekko-http snapshots (#…
Browse files Browse the repository at this point in the history
…203)

* use sbt-pekko-build to allow testing with pekko/pekko-http snapshots

* Update build.sbt
  • Loading branch information
pjfanning authored Dec 27, 2023
1 parent 42efa01 commit 1edf645
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 9 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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
}
9 changes: 5 additions & 4 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 1edf645

Please sign in to comment.