-
Notifications
You must be signed in to change notification settings - Fork 16
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: Remove support for Java 8 # #55
Conversation
does not make sense to me - the maven compiler is set to use Can you explain what is you mean behind this sentence? if it is just that you are not doing any manual testing on Java8 JVMs that is fine - but should not affect the plugins ability to run? |
I think we have first issue related, even though it is in the release notes https://issues.jenkins.io/browse/JENKINS-69229 I have detected the incompatibility with Java 8 a few weeks ago trying to compile trilead-ssh2 with Java 8, one of the dependencies require Java 11 so the compatibility is broken |
Please bump the core dependency to 2.357 or newer, otherwise this will be offered to users of Jenkins that could still be running on Java 11. Meanwhile, jenkins-infra/update-center2#629 |
or downgrade the parent of the |
Co-authored-by: Jesse Glick <[email protected]>
You would need to amend trilead-api-plugin/Jenkinsfile Line 2 in 9e7860a
|
well this breaks also situation where master is on jdk11 and agents are still on jdk8 and is silent since this plugin gets installed as a dependency from a lot of other plugins, so I think that a requirement bump to 2.357 (which removes jdk8 support) is more safe to avoid breaking people installations (like ours) |
Jenkins core >=2.357 will require Java 11. If you use trilead-api >= 1.71.v9e7860a_67a_df, the agents connected to this Jenkins must use Java 11 too. The recommendation is to use the same JDK on the Jenkins Controller and Jenkins Agents. |
Probably best, but to be clear, this is not required; you can use any version of Java (BTW could be a JRE not JDK) for the controller, and independently any version for the agent, so long as both are sufficiently new: until recently, 8 or later; as of 2.357, 11 or later. The recommendation by the Jenkins project for a year or so has been to use Java 11 (for both controller and agents); Java 17 also runs well with recent versions. |
as stated before is a recommendation, we are migrating from jdk8 but it requires some effort, this is why we still have jdk8 agent, and we won't update to 2.357 until the migration is complete. |
Yes, we know that, which is why it was pulled from the UC; merging this PR would publish a correction that should be safe to appear on the UC. If you installed the broken version, revert. |
next week I will merge this PR |
the upstream bom is available - I do not understand why waiting is going to make things better for anyone? |
It will not make anything better, I am simply not available to attend to any issue, so I will wait until I can do it |
Co-authored-by: James Nord <[email protected]>
Since this PR the compatibility with Java 8 is not guaranteed and is not supported.