Skip to content

Commit 6cb05ba

Browse files
Release workflows: use JDK 17 to match project target (#3771)
pom.xml sets <maven.compiler.release>17</maven.compiler.release> (since #3579, "Bump minimum Java version to 17"), but release-prepare-rc.yml and release-publish.yml still set up JDK 11. The mismatch produces "class file version 61.0 vs. 55.0" errors when the release build runs under Java 11. Update both workflows to JDK 17 (setup-java step name and java-version) so the runtime matches the compile target. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent a363f5d commit 6cb05ba

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release-prepare-rc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ jobs:
5656
fetch-depth: 0
5757
token: ${{ secrets.GITHUB_TOKEN }}
5858

59-
- name: Set up JDK 11
59+
- name: Set up JDK 17
6060
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
6161
with:
6262
distribution: temurin
63-
java-version: '11'
63+
java-version: '17'
6464

6565
- name: Import GPG key and configure Git
6666
env:

.github/workflows/release-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ jobs:
6565
fetch-depth: 0
6666
token: ${{ secrets.GITHUB_TOKEN }}
6767

68-
- name: Set up JDK 11
68+
- name: Set up JDK 17
6969
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
7070
with:
7171
distribution: temurin
72-
java-version: '11'
72+
java-version: '17'
7373

7474
- name: Install Subversion
7575
run: sudo apt-get update -q && sudo apt-get install -q -y subversion

0 commit comments

Comments
 (0)