Skip to content

Commit d4a6533

Browse files
authored
github actions: use jdk21 for all builds (#1801)
`--release=8` for both javac and scalac ensure that we don't use jdk9+ apis...
1 parent 2007cdb commit d4a6533

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/pr.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ jobs:
1919
- name: Set up JDK
2020
uses: actions/setup-java@v4
2121
with:
22-
distribution: 'adopt'
23-
java-version: 19
22+
distribution: temurin
23+
java-version: 21
24+
cache: sbt
2425
- uses: sbt/setup-sbt@v1
2526
- name: Compile and run tests
2627
run: sbt +test

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ jobs:
2020
- name: Set up JDK
2121
uses: actions/setup-java@v4
2222
with:
23-
distribution: 'adopt'
24-
java-version: 19
23+
distribution: temurin
24+
java-version: 21
25+
cache: sbt
2526
- uses: sbt/setup-sbt@v1
2627
- name: Check formatting
2728
run: sbt scalafmtCheck Test/scalafmtCheck
@@ -53,11 +54,12 @@ jobs:
5354
run: echo $PGP_SECRET | base64 --decode | gpg --batch --import
5455
env:
5556
PGP_SECRET: ${{ secrets.PGP_SECRET }}
56-
- name: Set up JDK 11
57+
- name: Set up JDK
5758
uses: actions/setup-java@v4
5859
with:
59-
distribution: 'adopt'
60-
java-version: 11
60+
distribution: temurin
61+
java-version: 21
62+
cache: sbt
6163
- uses: sbt/setup-sbt@v1
6264
- name: Release to Sonatype
6365
run: sbt ciReleaseTagNextVersion ciReleaseSonatype

0 commit comments

Comments
 (0)