Skip to content

Test with Java 25 - #127

Merged
maxlaverse merged 4 commits into
jenkinsci:masterfrom
MarkEWaite:test-with-java-25
Dec 1, 2025
Merged

Test with Java 25#127
maxlaverse merged 4 commits into
jenkinsci:masterfrom
MarkEWaite:test-with-java-25

Conversation

@MarkEWaite

@MarkEWaite MarkEWaite commented Dec 1, 2025

Copy link
Copy Markdown

Test with Java 25

Java 25 released September 16, 2025. The Jenkins project wants to support Java 25 soon. Compile and test on ci.jenkins.io with Java 25 and Java 21.

Intentionally continues to generate Java 17 byte code as configured by the plugin parent pom.

Does not compile or test with Java 17 any longer because we have found no issues in the past that were specific to the Java 17 compiler. The plan is to drop support for Java 17 in the not too distant future so that the Jenkins project is only supporting two major Java versions at a time, Java 21 and Java 25.

Also includes commits:

  • Use ssh syntax that works well with plugin BOM
  • Require Jenkins 2.479.3, not 2.479.1 and use latest plugin BOM
  • Use parent pom 5.28

Testing done

  • Confirmed that plugin compiles with Java 25
  • Confirmed that many automated tests pass with Java 25
  • Confirmed that automated tests pass on ci.jenkins.io

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Simplify version management in the pom file by using the versions
provided by the plugin BOM.
Need parent pom 5.24 or later in order to compile and test with Java 25.
Java 25 released September 16, 2025.  The Jenkins project wants to support
Java 25 soon.  Compile and test on ci.jenkins.io with Java 25 and Java 21.

Intentionally continues to generate Java 17 byte code as configured by
the plugin parent pom.

Does not compile or test with Java 17 any longer because we have found no
issues in the past that were specific to the Java 17 compiler.  The plan
is to drop support for Java 17 in the not too distant future so that the
Jenkins project is only supporting two major Java versions at a time,
Java 21 and Java 25.

Testing done:

* Confirmed that plugin compiles with Java 25
* Confirmed that many automated tests pass with Java 25
* Rely on ci.jenkins.io to test all configurations
@MarkEWaite
MarkEWaite requested a review from a team as a code owner December 1, 2025 02:15

@maxlaverse maxlaverse left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks a lot @MarkEWaite !

@maxlaverse
maxlaverse merged commit 1956ccf into jenkinsci:master Dec 1, 2025
4 checks passed
@MarkEWaite
MarkEWaite deleted the test-with-java-25 branch December 1, 2025 20:20
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.

2 participants