Skip to content

Commit

Permalink
Warn Java 11 users of 18 Jun 2024 end of life in weekly (#9314)
Browse files Browse the repository at this point in the history
Alert Java 11 users of 18 Jun 2024 end of life in weekly

Also updates the Java 11 end of life date for Java 11 users running with
the long term support release.
  • Loading branch information
MarkEWaite committed May 27, 2024
1 parent f6e9283 commit 4ff2f41
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,16 @@ public class JavaVersionRecommendationAdminMonitor extends AdministrativeMonitor

static {
NavigableMap<Integer, LocalDate> supportedVersions = new TreeMap<>();
supportedVersions.put(11, LocalDate.of(2024, 9, 30)); // Temurin: 2024-10-31
// Adjust Java 11 end of life date for weekly and LTS
if (Jenkins.VERSION.split("[.]").length > 2) {
// LTS will require Java 17 or newer beginning 30 Oct 2024
// https://groups.google.com/g/jenkinsci-dev/c/gsXAqOQQEPc/m/VT9IBYdmAQAJ
supportedVersions.put(11, LocalDate.of(2024, 10, 30)); // Temurin: 2024-10-31
} else {
// Weekly will require Java 17 or newer beginning 18 Jun 2024
// https://groups.google.com/g/jenkinsci-dev/c/gsXAqOQQEPc/m/4fn4Un1iAwAJ
supportedVersions.put(11, LocalDate.of(2024, 6, 18)); // Temurin: 2024-10-31
}
supportedVersions.put(17, LocalDate.of(2026, 3, 31)); // Temurin: 2027-10-31
supportedVersions.put(21, LocalDate.of(2027, 9, 30)); // Temurin: 2029-09-30
SUPPORTED_JAVA_VERSIONS = Collections.unmodifiableNavigableMap(supportedVersions);
Expand Down

0 comments on commit 4ff2f41

Please sign in to comment.