Skip to content

Release workflows: use JDK 17 to match project target - #3771

Merged
Fokko merged 1 commit into
apache:masterfrom
RussellSpitzer:fix/release-jdk-17
Sep 4, 2026
Merged

Release workflows: use JDK 17 to match project target#3771
Fokko merged 1 commit into
apache:masterfrom
RussellSpitzer:fix/release-jdk-17

Conversation

@RussellSpitzer

Copy link
Copy Markdown
Member

Rationale for this change

Runner was using Java 17 for Compiling but 11 for running.

What changes are included in this PR?

Just always use 17.

Are these changes tested?

No

Are there any user-facing changes?

pom.xml sets <maven.compiler.release>17</maven.compiler.release> (since
apache#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>

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @RussellSpitzer and thanks @divjotarora for the review!

@Fokko
Fokko merged commit 6cb05ba into apache:master Sep 4, 2026
4 of 5 checks passed
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.

3 participants