Skip to content

Align Play dependencies and upgrade Pekko gRPC to 2.0.0 - #932

Merged
mkurz merged 5 commits into
playframework:mainfrom
mkurz:align-play-snapshot-de32fcb4
Nov 19, 2026
Merged

mkurz merged 5 commits into
playframework:mainfrom
mkurz:align-play-snapshot-de32fcb4

Conversation

@mkurz

@mkurz mkurz commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Play Samples currently needs dependency overrides because Play gRPC publishes an older Play snapshot and Pekko milestone dependencies. Align this integration with core Play 3.1.0-M10-de32fcb4-SNAPSHOT, Pekko and Pekko HTTP 2.0.0, and ScalaTestPlus Play 8.0.0-M2+91-0f24d96f-SNAPSHOT so the next main-branch publication can resolve consistently in Play Samples #1750.

Upgrade the Pekko gRPC plugin, runtime and code generator to the released 2.0.0, and synchronize the documentation version. Remove the explicit sbt-protoc compatibility dependency, which the released plugin now supplies itself. Adapt the Java and Scala router-test request encoders to the new encodeFrame API.

Remove the Apache snapshots resolver and the obsolete pekko-stream/pekko-discovery dependency overrides in separate cleanup commits. The released dependencies now align naturally on Pekko 2.0.0. Keep Sonatype snapshots for the Play and Twirl snapshots. The Twirl template compatibility bridge remains necessary because Pekko gRPC 2.0.0 still generates calls to the older Twirl format() accessor.

Validation with Java 17 and sbt 2.1.0:

  • Clean full aggregate tests and JAR packaging pass on Scala 2.13.18, 3.3.9, 3.9.0 and 3.10.0.
  • Generator tests and JAR packaging pass on Scala 2.12.21 for sbt 1 consumers.
  • Scala/build formatting, Java formatting and copyright-header checks pass.
  • All ten published POM variants declare the intended Play/Pekko versions and application/generator Scala versions.

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.
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.
@mkurz mkurz changed the title Align Play snapshot with Play Samples Align Play and Pekko dependencies with Samples Nov 17, 2026
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.
Pekko and Pekko gRPC now resolve from Maven Central at their 2.0.0 releases. Retain Sonatype Central snapshots for Play and Twirl.
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.
@mkurz mkurz changed the title Align Play and Pekko dependencies with Samples Align Play dependencies and upgrade Pekko gRPC to 2.0.0 Nov 19, 2026
@mkurz
mkurz marked this pull request as ready for review November 19, 2026 12:46
@mergify

mergify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@mkurz
mkurz merged commit a7a76f1 into playframework:main Nov 19, 2026
34 of 70 checks passed
@mkurz
mkurz deleted the align-play-snapshot-de32fcb4 branch November 19, 2026 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant