From 7f398f0a943c302c9164d7437f1eb4439763cf91 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Tue, 17 Nov 2026 08:47:18 +0100 Subject: [PATCH 1/5] Align Play snapshot with Play Samples Align the core Play dependencies with Play Samples at 3.1.0-M10-de32fcb4-SNAPSHOT. Older hashed snapshots can otherwise win transitive dependency resolution and mix Pekko milestone artifacts with Pekko 2.0.0. --- project/Dependencies.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 20a632a6..31281c25 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -34,7 +34,7 @@ object Dependencies { val pekkoGrpc: String = PekkoGrpcBuildInfo.version val grpc: String = PekkoGrpcBuildInfo.grpcVersion - val play = sys.props.getOrElse("play.version", "3.1.0-M10-e1f3c2a9-SNAPSHOT") + val play = sys.props.getOrElse("play.version", "3.1.0-M10-de32fcb4-SNAPSHOT") val scalaTest = "3.2.20" val scalaTestPlusPlay = "8.0.0-M2+86-ba513f60-SNAPSHOT" From d14f51702b3a1f38748beeb02dc9e895413126b0 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Tue, 17 Nov 2026 09:12:08 +0100 Subject: [PATCH 2/5] Align Pekko and ScalaTestPlus dependencies with Play Use Pekko and Pekko HTTP 2.0.0 with the configured Play snapshot and consume the newly published Play-aligned ScalaTestPlus snapshot. The draft remains blocked by Pekko gRPC 2.0.0-M2 requesting older HTTP modules until the voted release is available. --- project/Dependencies.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 31281c25..aa3e4ba9 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -28,8 +28,8 @@ object Dependencies { // Don't use PekkoGrpcBuildInfo.pekkoHttpVersion or PekkoGrpcBuildInfo.pekkoVersion and prioritize // aligning with versions transitively brought in via Play. - val pekko = "2.0.0-M4" - val pekkoHttp = "2.0.0-M1+314-958943d2-SNAPSHOT" + val pekko = "2.0.0" + val pekkoHttp = "2.0.0" val pekkoGrpc: String = PekkoGrpcBuildInfo.version val grpc: String = PekkoGrpcBuildInfo.grpcVersion @@ -37,7 +37,7 @@ object Dependencies { val play = sys.props.getOrElse("play.version", "3.1.0-M10-de32fcb4-SNAPSHOT") val scalaTest = "3.2.20" - val scalaTestPlusPlay = "8.0.0-M2+86-ba513f60-SNAPSHOT" + val scalaTestPlusPlay = "8.0.0-M2+91-0f24d96f-SNAPSHOT" val macwire = "2.6.5" } From fe1d74519a6e477ab5b118473918062ace5ae4f6 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 19 Nov 2026 13:21:14 +0100 Subject: [PATCH 3/5] Upgrade Pekko gRPC to 2.0.0 Use the released plugin, runtime and code generator, and synchronize the documentation version. The plugin now supplies sbt-protoc 1.1.0-RC2 itself, so remove the explicit compatibility dependency. Adapt the Java and Scala router-test helpers to the new encodeFrame API in place of the removed frameEncoder stream. --- docs/antora.yml | 2 +- .../src/test/scala/play/grpc/PlayJavaRouterSpec.scala | 2 +- .../src/test/scala/play/grpc/PlayScalaRouterSpec.scala | 2 +- project/plugins.sbt | 6 ++---- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/antora.yml b/docs/antora.yml index 79dfaf31..2003a68e 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -5,4 +5,4 @@ nav: - modules/ROOT/nav.adoc asciidoc: attributes: - pekko-grpc-version: 2.0.0-M2 # Sync with `sbt-pekko-grpc` in project/plugins.sbt + pekko-grpc-version: 2.0.0 # Sync with `sbt-pekko-grpc` in project/plugins.sbt diff --git a/play-interop-test-java/src/test/scala/play/grpc/PlayJavaRouterSpec.scala b/play-interop-test-java/src/test/scala/play/grpc/PlayJavaRouterSpec.scala index 911a3729..5d34fb59 100644 --- a/play-interop-test-java/src/test/scala/play/grpc/PlayJavaRouterSpec.scala +++ b/play-interop-test-java/src/test/scala/play/grpc/PlayJavaRouterSpec.scala @@ -130,7 +130,7 @@ class PlayJavaRouterSpec extends AnyWordSpec with Matchers with BeforeAndAfterAl .single(msg) .map(serializer.serialize) .map(DataFrame(_)) - .via(GrpcProtocolNative.newWriter(Identity).frameEncoder), + .map(GrpcProtocolNative.newWriter(Identity).encodeFrame), ), ) } diff --git a/play-interop-test-scala/src/test/scala/play/grpc/PlayScalaRouterSpec.scala b/play-interop-test-scala/src/test/scala/play/grpc/PlayScalaRouterSpec.scala index 8286ea1a..4af26e87 100644 --- a/play-interop-test-scala/src/test/scala/play/grpc/PlayScalaRouterSpec.scala +++ b/play-interop-test-scala/src/test/scala/play/grpc/PlayScalaRouterSpec.scala @@ -86,7 +86,7 @@ class PlayScalaRouterSpec extends AnyWordSpec with Matchers with BeforeAndAfterA .single(msg) .map(serializer.serialize) .map(DataFrame(_)) - .via(GrpcProtocolNative.newWriter(Identity).frameEncoder), + .map(GrpcProtocolNative.newWriter(Identity).encodeFrame), ), ) } diff --git a/project/plugins.sbt b/project/plugins.sbt index 464a6301..6077329a 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -5,7 +5,5 @@ addSbtPlugin("org.playframework.twirl" % "sbt-twirl" % "2.1.0-M9+129 addSbtPlugin("com.github.sbt" % "sbt-header" % "5.11.0") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.2") addSbtPlugin("com.github.sbt" % "sbt-java-formatter" % "0.14.0") -addSbtPlugin("org.apache.pekko" % "pekko-grpc-sbt-plugin" % "2.0.0-M2") // Sync with docs/antora.yml -// Remove this explicit dependency when upgrading pekko-grpc-sbt-plugin to 2.0.0-M3 or later. -addSbtPlugin("com.thesamet" % "sbt-protoc" % "1.1.0-RC2") -addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.12.1") +addSbtPlugin("org.apache.pekko" % "pekko-grpc-sbt-plugin" % "2.0.0") // Sync with docs/antora.yml +addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.12.1") From 5f29817df2170062c60014650b3f5662cc841ea7 Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 19 Nov 2026 13:41:04 +0100 Subject: [PATCH 4/5] Remove the Apache snapshots resolver Pekko and Pekko gRPC now resolve from Maven Central at their 2.0.0 releases. Retain Sonatype Central snapshots for Play and Twirl. --- build.sbt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build.sbt b/build.sbt index 718fda4e..f3b9fba7 100644 --- a/build.sbt +++ b/build.sbt @@ -34,10 +34,7 @@ ThisBuild / javacOptions ++= List( ThisBuild / javafmtFormatterCompatibleJavaVersion := 17 ThisBuild / Test / fork := true -ThisBuild / resolvers ++= Seq( - Resolver.sonatypeCentralSnapshots, - Resolver.ApacheMavenSnapshotsRepo, -) +ThisBuild / resolvers += Resolver.sonatypeCentralSnapshots ThisBuild / dependencyOverrides ++= Seq( Dependencies.Compile.pekkoStream, From 59e6fd700c258c6467a1dadedeecbb6357ef8a7b Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Thu, 19 Nov 2026 13:41:08 +0100 Subject: [PATCH 5/5] Remove obsolete Pekko dependency overrides The aligned Play snapshot and released Pekko gRPC runtime both depend on Pekko 2.0.0. Let their ordinary dependency resolution select pekko-stream and pekko-discovery without forced overrides. --- build.sbt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/build.sbt b/build.sbt index f3b9fba7..557779e1 100644 --- a/build.sbt +++ b/build.sbt @@ -36,11 +36,6 @@ ThisBuild / Test / fork := true ThisBuild / resolvers += Resolver.sonatypeCentralSnapshots -ThisBuild / dependencyOverrides ++= Seq( - Dependencies.Compile.pekkoStream, - Dependencies.Compile.pekkoDiscovery, -) - val playGrpc = Project("play-grpc", file(".")) aggregateProjects( playRuntime,