Skip to content

Test with Java 25#101

Merged
froque merged 3 commits intojenkinsci:masterfrom
MarkEWaite:test-with-java-25
Dec 28, 2025
Merged

Test with Java 25#101
froque merged 3 commits intojenkinsci:masterfrom
MarkEWaite:test-with-java-25

Conversation

@MarkEWaite
Copy link
Contributor

Test with Java 25

Java 25 released September 16, 2025. Jenkins core has supported Java 25 since Jenkins 2.534, Oct 28, 2025.

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 performs updates to allow compilation with Java 25, including:

  • Require Jenkins 2.479.3 or newer
  • Use plugin parent pom 5.28

Testing done

  • Confirmed that automated tests pass with Java 25

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

Jenkins 2.479.1 is the first LTS version to require Java 17 or newer.
Use 2.479.3 instead of 2.479.1 based on the recommendation in
https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/

https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/
notes that 2.479.1 is the oldest LTS version currently supported by
the Jenkins update center.  It recommends 2.504.3 and 2.516.3 as good
core dependencies.  I didn't update to those versions on the assumption
that testing with Java 25 was more likely to be accepted if fewer changes
were made.
Plugin parent pom 5.28 is new enough to support Java 25 but not so new
that it makes the change from JUnit 4 to JUnit Jupiter.

Needed to compile and test with Java 25
Java 25 released September 16, 2025.  Jenkins core has supported Java
25 since Jenkins 2.534, Oct 28, 2025.

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 automated tests pass with Java 25
@MarkEWaite MarkEWaite requested a review from a team as a code owner December 27, 2025 12:12
@froque froque merged commit dc94503 into jenkinsci:master Dec 28, 2025
16 checks passed
@MarkEWaite MarkEWaite deleted the test-with-java-25 branch December 28, 2025 14:57
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