Skip to content

chore: Revert checkstyle 13.3.0 bump and add Java 17 to Jenkinsfile#218

Merged
gounthar merged 2 commits intojenkinsci:masterfrom
gounthar:fix/revert-checkstyle-bump-and-add-java17
Mar 4, 2026
Merged

chore: Revert checkstyle 13.3.0 bump and add Java 17 to Jenkinsfile#218
gounthar merged 2 commits intojenkinsci:masterfrom
gounthar:fix/revert-checkstyle-bump-and-add-java17

Conversation

@gounthar
Copy link
Contributor

@gounthar gounthar commented Mar 4, 2026

Summary

  • Reverts checkstyle from 13.3.0 back to 13.0.0. Version 13.3.0 requires Java 21 (class file version 65.0) which breaks the plugin BOM tests running on Java 17
  • Adds a [platform: 'linux', jdk: 17] configuration to the Jenkinsfile

Context

As reported by @MarkEWaite in #215, the checkstyle 13.3.0 bump is causing BOM test failures:

The error: UnsupportedClassVersionError: com/puppycrawl/tools/checkstyle/api/CheckstyleException has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0

Class file version 65.0 = Java 21; the BOM environment tests Java 17 too (version 61.0).

Test plan

  • CI passes with reverted checkstyle version
  • Java 17 configuration is exercised in CI

cc @MarkEWaite @krisstern; once merged, a new release would be needed to fix the weekly BOM build.

Checkstyle 13.3.0 requires Java 17 (class file version 65.0), which
breaks the plugin BOM tests that run on Java 11.

This reverts the checkstyle version to 13.0.0 and adds a Java 17
configuration to the Jenkinsfile as requested by @MarkEWaite.

Fixes jenkinsci#215
@gounthar gounthar requested a review from a team as a code owner March 4, 2026 06:37
@gounthar gounthar changed the title Revert checkstyle 13.3.0 bump and add Java 17 to Jenkinsfile chore: Revert checkstyle 13.3.0 bump and add Java 17 to Jenkinsfile Mar 4, 2026
Checkstyle 13.x (both 13.0.0 and 13.3.0) requires Java 21 (class file
version 65.0). Downgrade to 12.3.1 which is the last version compatible
with Java 17.

Verified locally: BUILD SUCCESS with Java 17.0.18-tem.
@gounthar
Copy link
Contributor Author

gounthar commented Mar 4, 2026

Turns out checkstyle 13.0.0 also requires Java 21 (class file version 65.0); the entire 13.x line needs it. Downgraded to 12.3.1 instead, which is the last version compatible with Java 17.

Verified locally with Java 17.0.18-tem: BUILD SUCCESS.

configurations: [
[platform: 'linux', jdk: 25],
[platform: 'windows', jdk: 21],
[platform: 'linux', jdk: 17],
Copy link
Contributor

Choose a reason for hiding this comment

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

Considering possible regression (dependency not on the parent) this is a good idea to restore (temporarly JDK 17)

@jonesbusy
Copy link
Contributor

Up to maintainers, but I would argue in favor of CD for this repo

@gounthar gounthar merged commit 5ce0b59 into jenkinsci:master Mar 4, 2026
17 checks passed
@gounthar gounthar deleted the fix/revert-checkstyle-bump-and-add-java17 branch March 4, 2026 07:19
@krisstern
Copy link
Member

Hi everyone, a new release has been cut and now available at https://github.com/jenkinsci/gitlab-oauth-plugin/releases/tag/gitlab-oauth-1.28

@gounthar
Copy link
Contributor Author

gounthar commented Mar 5, 2026

Thanks a lot, Kris! 👍

@krisstern
Copy link
Member

You are welcome, Bruno!

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.

3 participants