Skip to content

Commit 204613b

Browse files
committed
Build for Java 25.
1 parent cc1cf7b commit 204613b

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ jobs:
2424
matrix:
2525
os: [ubuntu-latest]
2626
scala: [2.13.17, 3.3.7]
27-
java: [temurin@8, temurin@11, temurin@17, temurin@21]
27+
java:
28+
- temurin@8
29+
- temurin@11
30+
- temurin@17
31+
- temurin@21
32+
- temurin@25
2833
runs-on: ${{ matrix.os }}
2934
steps:
3035
- name: Checkout current branch (full)
@@ -64,6 +69,14 @@ jobs:
6469
java-version: 21
6570
cache: sbt
6671

72+
- name: Setup Java (temurin@25)
73+
if: matrix.java == 'temurin@25'
74+
uses: actions/setup-java@v5
75+
with:
76+
distribution: temurin
77+
java-version: 25
78+
cache: sbt
79+
6780
- name: Setup sbt
6881
uses: sbt/setup-sbt@v1
6982

@@ -78,5 +91,5 @@ jobs:
7891
run: sbt '++ ${{ matrix.scala }}' mimaReportBinaryIssues
7992

8093
- name: Build docs
81-
if: matrix.java == 'temurin@17'
94+
if: matrix.java == 'temurin@25'
8295
run: sbt '++ ${{ matrix.scala }}' docs/mdoc

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ lazy val scala3 = "3.3.7"
66
ThisBuild / crossScalaVersions := Seq(scala213, scala3)
77

88
// GitHub Actions config
9-
val javaVersions = Seq(8, 11, 17, 21).map(v => JavaSpec.temurin(v.toString))
9+
val javaVersions = Seq(8, 11, 17, 21, 25).map(v => JavaSpec.temurin(v.toString))
1010

1111
ThisBuild / githubWorkflowJavaVersions := javaVersions
1212
ThisBuild / githubWorkflowArtifactUpload := false
@@ -17,7 +17,7 @@ def isJava(v: Int) = s"matrix.java == '${javaVersions.find(_.version == v.toStri
1717

1818
ThisBuild / githubWorkflowBuild ++= Seq(
1919
WorkflowStep.Sbt(List("mimaReportBinaryIssues"), name = Some("Binary compatibility"), cond = Some(isJava(8))),
20-
WorkflowStep.Sbt(List("docs/mdoc"), name = Some("Build docs"), cond = Some(isJava(17))),
20+
WorkflowStep.Sbt(List("docs/mdoc"), name = Some("Build docs"), cond = Some(isJava(25))),
2121
)
2222

2323
ThisBuild / githubWorkflowPublishTargetBranches := Seq()

0 commit comments

Comments
 (0)