Skip to content

Add Java 21 and 25 advisory builds to CI#5328

Open
Baqirrizvidev wants to merge 1 commit into
knowm:developfrom
Baqirrizvidev:ci-5304-java-21-25-advisory
Open

Add Java 21 and 25 advisory builds to CI#5328
Baqirrizvidev wants to merge 1 commit into
knowm:developfrom
Baqirrizvidev:ci-5304-java-21-25-advisory

Conversation

@Baqirrizvidev

Copy link
Copy Markdown

Fixes #5304

Implements the proposal exactly as specified in the issue:

  • Both maven.yml (push to develop) and maven_on_pull_request.yml (PRs) now build a JDK matrix over 17, 21, 25 with fail-fast: false.
  • Java 17 stays the only gating entry. 21 and 25 carry experimental: true via matrix include and the job sets continue-on-error: ${{ matrix.experimental || false }}, so their failures leave the workflow conclusion green.
  • On maven.yml, only the Java 17 entry runs mvn clean deploy (snapshot publish); 21 and 25 stop at mvn clean verify — no snapshots from non-17 JDKs.
  • The Maven <release> target is untouched — this tests build/test compatibility on newer JDKs, not a retarget.

Check names become build (17), build (21), build (25) (the experimental flag is added via include, so it does not appear in the job name).

⚠️ Note for maintainers (from the issue's follow-up section): the required status check on develop branch protection needs updating from build to build (17) after merge.

🤖 Generated with Claude Code

Convert both Maven workflows to a JDK matrix (17, 21, 25) with
fail-fast disabled. Java 17 remains the sole gating entry; 21 and 25
are experimental and use continue-on-error so they cannot fail the
workflow. On push builds only the Java 17 entry deploys snapshots;
21 and 25 stop at verify.

Fixes knowm#5304

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

[build] Add Java 21 and Java 25 to CI as advisory builds

1 participant