Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Dec 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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