-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Default buildPlugin()
and buildPluginWithGradle()
to Java 11
#514
Comments
I though about that but as @dduportal noted doing so would break all plugins compatible with Java 8 only (AFAIU). |
Those would just need to specify JDK 8 then, no? |
Yes, that's all they need, but until they've done it (if ever), their plugin build will be broken. |
+1 with what @lemeurherve said. However this task could be associated to a communication to all plugins developers + eventually a batch of PRs to change on plugins and maintainers could then choose to merge or not WDYT? @NotMyFault worth an email on the dev mailing list to boostrap the subject? |
Yup, I remember we did similar stuff in the past to accomplish infrastructure changes, like switching to the reusable CD workflow.
Yeah, communication is key. Albeit, I doubt there are many active and maintained plugins and components, which require compilation and execution on Java 8 only. |
Is there an easy way to identify plugins working only with jdk8? |
We are in the "phase change" portion of the migration now; i.e., the awkward period where both new and old worlds are supported concurrently. At some point we will have to break with the past and drop support for Java 8 as a first-class citizen in the toolchain, including dropping support for Java 8 in things like the Jenkins test harness, acceptance test harness, Maven HPI plugin, plugin parent POM, etc. My preliminary thinking was that we should wait until at least the 2.375.1 LTS, given that the developer documentation recommends that plugins support 1-3 LTS releases. The plugin parent POM currently supports cores all the way back to 2.249, but I think it is worth shorting our typical support cycle in this case. Unfortunately there is no foolproof way to detect if a plugin is compatible with Java 11 or not, but plugins with a parent POM earlier than 4.40 are unlikely to build and test cleanly against newer Jenkins cores on Java 11 without at least minor build changes. |
|
Well, another way would be to do what plugin pom has done which is to pin the JDK based on Jenkins version? So, if 2.361.1 use JDK 11. |
|
Both calls still default to Java 8, when the minimum Java version to compile plugins against modern baselines require Java 11.
It would be nice to have Java 11 available as default, given that's the lowest supported Java version by now.
The text was updated successfully, but these errors were encountered: