-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: Support Jenkins >= 2.475 #235
Conversation
Jenkins 2.475 and Jenkins LTS 2.479.1 introduce a change to the Java Servlet API version and the servlet container support policy. This takes it from JEE8 to JEE9. This changes the coordinates of servlet-api to jakarta. This gradle plugin can be built with JDK 11 but not with JDK 17 which would be required for adding the extra test to `JenkinsVersionIntegrationSpec`. Related: JENKINS-73278
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Looking at 7387a74 it seems this was released in v0.53.0-rc.2 and |
@basil 0.53.0 is out now. Releases page will be updated later today. A tooling issue led to 0.52.0-rc.3 being created after 0.52.0 was already released. This has since been fixed. |
@rahulsom This PR appears to be necessary but not sufficient to support Jenkins ≥ 2.475 and Java 17, as demonstrated in the minimal conversion in jenkinsci/text-finder-plugin#256 which fails test compilation with
|
I checked out that branch and ran this ./gradlew dependencyInsight --configuration compileClasspath --dependency servlet-api It does show
But this doesn't
|
Yes, agree with adding it to |
I think the issue is likely the inclusion of an old test harness that bundles Jetty 10 and EE 8. For 2.479.1 LTS and Java 17 the latest test harness should be used, which bundles Jetty 12 and EE 9. |
Jenkins 2.475 and Jenkins LTS 2.479.1 introduce a change to the Java Servlet API version and the servlet container support policy.
This takes it from JEE8 to JEE9.
This changes the coordinates of servlet-api to jakarta.
This gradle plugin can be built with JDK 11 but not with JDK 17 which would be required for adding the extra test to
JenkinsVersionIntegrationSpec
.Related: JENKINS-73278
Related: jenkinsci/jenkins#9672
Testing done
Submitter checklist