Skip to content

Prepare for Java 25 release Sep 16, 2025#176

Closed
MarkEWaite wants to merge 1 commit intojenkinsci:masterfrom
MarkEWaite:allow-java-24-compilation
Closed

Prepare for Java 25 release Sep 16, 2025#176
MarkEWaite wants to merge 1 commit intojenkinsci:masterfrom
MarkEWaite:allow-java-24-compilation

Conversation

@MarkEWaite
Copy link
Contributor

Prepare for Java 25 release Sep 16, 2025

Java 25 is the next Java Long Term Support release. It is scheduled to release Sep 16, 2025. The Jenkins project intends to support new Java LTS releases soon after they are available. The initial goal is to have Jenkins core and the top 200 plugins compiling and testing with Java 25 by Oct 31, 2025.

Without these changes, the plugin does not compile with Java 24. Since we can expect that Java 25 will be a superset of Java 24, this update will help prepare the plugin to eventually be compiled and tested with Java 25.

The changes include:

  • Update parent pom from 5.5 to 5.18 (most recent parent pom)
  • Remove 3 spotbugs suppressions that are no longer necessary

Testing done

Confirmed that mvn clean verify passes with the changes.

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
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

Java 25 is the next Java Long Term Support release.  It is scheduled to
release Sep 16, 2025.  The Jenkins project intends to support new Java
LTS releases soon after they are available.  The initial goal is to have
Jenkins core and the top 200 plugins compiling and testing with Java 25
by Oct 31, 2025.

Without these changes, the plugin does not compile with Java 24.  Since we
can expect that Java 25 will be a superset of Java 24, this update will
help prepare the plugin to eventually be compiled and tested with Java 25.

The changes include:

* Update parent pom from 5.5 to 5.18 (most recent parent pom)
* Remove 3 spotbugs suppressions that are no longer necessary

Testing done:

Confirmed that `mvn clean verify` passes with the changes.
@MarkEWaite MarkEWaite requested a review from a team as a code owner July 20, 2025 22:02
@daniel-beck
Copy link
Member

Will review and possibly merge towards the next release that happens anyway.

@daniel-beck
Copy link
Member

Superseded by #180.

@daniel-beck daniel-beck closed this Aug 7, 2025
@daniel-beck
Copy link
Member

daniel-beck commented Aug 8, 2025

Prepare for Java 25 release

Does jenkinsci/plugin-pom#1175 mean this PR was incomplete and needs another followup?

@MarkEWaite
Copy link
Contributor Author

MarkEWaite commented Aug 8, 2025

Does jenkinsci/plugin-pom#1175 mean this PR was incomplete and needs another followup?

Yes, if your expectation was that this PR was all that was required to compile and test the plugin with Java 25, then this PR was incomplete. This PR was known to not be enough to compile and test the plugin with Java 25. That's why I described it with the phrase:

Since we can expect that Java 25 will be a superset of Java 24, this update will help prepare the plugin to eventually be compiled and tested with Java 25.

The Java byte code manipulation libraries used to compile and test Jenkins plugins need to support Java 25.

Tools that use ASM (like license maven plugin and spotless) will need to update to ASM 9.8. License maven plugin 184.v19c87b_6b_a_9a_c uses ASM 9.8 but is not yet included in a released pom file. The palantir Java formatter we use inside the spotless Maven plugin needs to be updated to 2.73.0 that was released last week (at least for the git client plugin use of spotless).

Pull requests for the Palantir Java Format upgrade have been submitted as:

Tools that use bytebuddy like mockito need to be using bytebuddy 1.17.5 or later for Java 25 support. The mockito 5.18.0 release currently available from the plugin pom is already using bytebuddy 1.17.5.

@daniel-beck
Copy link
Member

I see, thanks for the clarification.

@MarkEWaite MarkEWaite deleted the allow-java-24-compilation branch November 16, 2025 04:19
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