This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-persistence-r2dbc.git
The following commit(s) were added to refs/heads/main by this push:
new 9b1a7d9 Update scala-library to 3.9.0 (#485)
9b1a7d9 is described below
commit 9b1a7d99c52017c8b353a6195dda09c68968ff90
Author: Scala Steward <[email protected]>
AuthorDate: Fri Sep 4 21:53:26 2026 +0200
Update scala-library to 3.9.0 (#485)
* Update scala-library to 3.9.0
* Update Scala versions in Dependencies.scala
* Skip MiMa checks when building with Scala 3.9.0
Motivation:
This branch adds Scala 3.9.0 to crossScalaVersions. Scala 3.9.0 shares the
"_3" binary suffix with the existing 3.3 artifacts, so
`+mimaReportBinaryIssues`
picks up the released 3.3-built artifacts and checks them against classes
compiled by a much newer compiler. There is no released artifact built with
3.9.0 to compare against, so that check carries no useful signal.
Modification:
Clear `core / mimaPreviousArtifacts` when `scalaVersion` is `Scala3Next`.
The migration module already skips MiMa for all Scala 3 versions, so it
needed no change.
Result:
`sbt +mimaReportBinaryIssues` still checks Scala 2.13 and Scala 3.3, and
reports "mimaPreviousArtifacts is empty, not analyzing binary compatibility"
for Scala 3.9.0.
Tests:
- `sbt -batch "show core/mimaPreviousArtifacts" "++3.3.8
core/mimaPreviousArtifacts" "++3.9.0 core/mimaPreviousArtifacts"` - 2.13 and
3.3.8 keep pekko-persistence-r2dbc:1.0.0, 3.9.0 is empty
- `sbt -batch scalafmtSbtCheck "++3.9.0 core/mimaReportBinaryIssues"
"++3.9.0 migration/mimaReportBinaryIssues"` - success, both modules skip the
analysis
References:
None - follow-up to the Scala 3.9.0 version bump on this branch
* Update build-test.yml
---------
Co-authored-by: PJ Fanning <[email protected]>
---
.github/workflows/build-test.yml | 10 +++++-----
build.sbt | 9 ++++++++-
project/Dependencies.scala | 2 +-
3 files changed, 14 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index 014afdb..e8652f0 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- SCALA_VERSION: [ 2.13, 3.3, 3.8 ]
+ SCALA_VERSION: [ 2.13, 3.3, 3.9 ]
JAVA_VERSION: [ 17, 21 ]
steps:
- name: Checkout
@@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- SCALA_VERSION: [ 2.13, 3.3, 3.8 ]
+ SCALA_VERSION: [ 2.13, 3.3, 3.9 ]
JAVA_VERSION: [ 17 ]
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
@@ -102,7 +102,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- SCALA_VERSION: [ 2.13, 3.3, 3.8 ]
+ SCALA_VERSION: [ 2.13, 3.3, 3.9 ]
JAVA_VERSION: [ 17 ]
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
@@ -156,7 +156,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- SCALA_VERSION: [ 2.13, 3.3, 3.8 ]
+ SCALA_VERSION: [ 2.13, 3.3, 3.9 ]
JAVA_VERSION: [ 17 ]
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
@@ -213,7 +213,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- SCALA_VERSION: [ 2.13, 3.3, 3.8 ]
+ SCALA_VERSION: [ 2.13, 3.3, 3.9 ]
JAVA_VERSION: [ 17, 21 ]
if: github.repository == 'apache/pekko-persistence-r2dbc'
steps:
diff --git a/build.sbt b/build.sbt
index 15fd998..324a3b6 100644
--- a/build.sbt
+++ b/build.sbt
@@ -61,7 +61,14 @@ lazy val core = (project in file("core"))
.enablePlugins(ReproducibleBuildsPlugin)
.settings(
name := "pekko-persistence-r2dbc",
- libraryDependencies ++= Dependencies.core)
+ libraryDependencies ++= Dependencies.core,
+ mimaPreviousArtifacts := {
+ // no MiMa check for the next Scala 3 version, there are no released
artifacts built with it
+ if (scalaVersion.value == Dependencies.Scala3Next)
+ Set.empty
+ else
+ mimaPreviousArtifacts.value
+ })
lazy val migration = (project in file("migration"))
.enablePlugins(ReproducibleBuildsPlugin)
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 19ab412..458893b 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -16,7 +16,7 @@ import sbt._
object Dependencies {
val Scala213 = "2.13.18"
val Scala3 = "3.3.8"
- val Scala3Next = "3.8.4"
+ val Scala3Next = "3.9.0"
val PekkoVersion = PekkoCoreDependency.version
val PekkoVersionInDocs = PekkoCoreDependency.default.link
val PekkoPersistenceJdbcVersion = PekkoPersistenceJdbcDependency.version
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]