Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Java 11 and test with Java 21 #55

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

MarkEWaite
Copy link

Require Java 11 and test with Java 21

Java 21 was released Sep 19, 2023. We want to announce full support for Java 21 in October and would like the most used plugins to be compiled and tested with Java 21.

The acceptance test harness and plugin bill of materials tests are already passing with Java 21. This is a further step to improve plugin readiness for use with Java 21 and for development with Java 21.

The change intentionally tests only two Java configurations, Java 17 and Java 21 because the risk of a regression that only affects Java 11 is low. We generate Java 11 byte code with the Java 17 and the Java 21 builds, so we're already testing Java 11 byte code.

Requires Java 11 and Jenkins 2.361.4 or newer.

Jenkins core has required Java 11 for more than a year. Installation statistics show that 55% of installations of this plugin are already running 2.361.4 or newer and that 92% of the installations of the most recent release (2.14) are running 2.361.4 or newer. Users that are upgrading this plugin are already using Jenkins 2.361.4 or newer.

Also includes the following pull requests:

Testing done

Confirmed tests pass with Java 21

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

dependabot bot and others added 8 commits February 20, 2023 19:56
Bumps [plugin](https://github.com/jenkinsci/plugin-pom) from 4.51 to 4.55.
- [Release notes](https://github.com/jenkinsci/plugin-pom/releases)
- [Changelog](https://github.com/jenkinsci/plugin-pom/blob/master/CHANGELOG.md)
- [Commits](jenkinsci/plugin-pom@plugin-4.51...plugin-4.55)

---
updated-dependencies:
- dependency-name: org.jenkins-ci.plugins:plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [git-changelist-maven-extension](https://github.com/jenkinsci/incrementals-tools) from 1.4 to 1.6.
- [Release notes](https://github.com/jenkinsci/incrementals-tools/releases)
- [Commits](jenkinsci/incrementals-tools@parent-1.4...parent-1.6)

---
updated-dependencies:
- dependency-name: io.jenkins.tools.incrementals:git-changelist-maven-extension
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
…gelist-maven-extension-1.6' into test-with-java-21
Jenkins core has required Java 11 for more than a year.

https://stats.jenkins.io/pluginversions/nexus-artifact-uploader.html shows
that 55% of installations of this plugin are already running 2.361.4 or
newer and that 92% of the installations of the most recent release (2.14)
are running 2.361.4 or newer.  Users that are upgrading this plugin are
already using Jenkins 2.361.4 or newer.
Java 21 was released Sep 19, 2023. We want to announce full support
for Java 21 in early October and would like the most used plugins to be
compiled and tested with Java 21.

The acceptance test harness and plugin bill of materials tests are already
passing with Java 21. This is a further step to improve plugin readiness
for use with Java 21 and for development with Java 21.

The change intentionally tests only two Java configurations, Java 17
and Java 21 because we believe that the risk of a regression that only
affects Java 11 is low. We generate Java 11 byte code with the Java 17
and the Java 21 builds, so we're already testing Java 11 byte code.
@MarkEWaite MarkEWaite requested a review from a team as a code owner October 17, 2023 12:53
@MarkEWaite
Copy link
Author

MarkEWaite commented Nov 11, 2023

@pskumar448 could you merge this pull request so that the plugin is regularly tested with Java 21? No release is required, just merge to update the test configuration.

https://ci.jenkins.io/job/Plugins/job/nexus-artifact-uploader-plugin/job/PR-55/lastSuccessfulBuild/ provides a pre-release with this change

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.

1 participant