Skip to content

Commit

Permalink
Require Java 11, test with Java 21 (#77)
Browse files Browse the repository at this point in the history
* build: bump plugin from 4.51 to 4.68

Bumps [plugin](https://github.com/jenkinsci/plugin-pom) from 4.51 to 4.68.
- [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.68)

---
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>

* Require Java 11 and Jenkins 2.361.4 or newer

Required in order to test with Java 21

Java 8 support ended in Jenkins over 12 months ago.  No shame to drop
support in this plugin.

* Use parent pom 4.74

* Test with Java 21

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.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
MarkEWaite and dependabot[bot] committed Nov 11, 2023
1 parent f9192e5 commit 504e633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
buildPlugin(useContainerAgent: true, configurations: [
[platform: 'linux', jdk: '11'],
[platform: 'windows', jdk: '11'],
[platform: 'linux', jdk: '17', jenkins: '2.342'],
[platform: 'linux', jdk: 21],
[platform: 'windows', jdk: 17],
])
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>4.51</version>
<version>4.74</version>
<relativePath />
</parent>

Expand Down Expand Up @@ -38,7 +38,7 @@

<properties>
<changelist>999999-SNAPSHOT</changelist>
<jenkins.version>2.332.1</jenkins.version>
<jenkins.version>2.361.4</jenkins.version>
</properties>

<scm>
Expand Down

0 comments on commit 504e633

Please sign in to comment.