Add boot-versions module: Spring Boot versions and support dates read from primary sources, Java baselines proven on JDK 8 to 27, 4.0 to 4.2 checks, with real transcripts
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
package com.ankurm.bootversions;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
/** Pins the support-date table of the article to a saved copy of api.spring.io (2026-12-03). */
|
||||
class SupportTest {
|
||||
|
||||
private static final LocalDate DAY = LocalDate.parse("2026-12-03");
|
||||
|
||||
private static Support line(String name) throws IOException {
|
||||
try (var in = SupportTest.class.getResourceAsStream("/generations-2026-12-03.json")) {
|
||||
return Support.parse(new String(in.readAllBytes())).stream()
|
||||
.filter(s -> s.line().equals(name)).findFirst().orElseThrow();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void boot40LosesFreeSupportOn31December2026() throws IOException {
|
||||
Support s = line("4.0.x");
|
||||
assertEquals(LocalDate.parse("2026-12-31"), s.ossEnd());
|
||||
assertEquals(LocalDate.parse("2027-12-31"), s.commercialEnd());
|
||||
assertEquals(28, s.ossDaysLeft(DAY));
|
||||
assertEquals(Support.Status.OSS, s.statusOn(LocalDate.parse("2026-12-31")));
|
||||
assertEquals(Support.Status.COMMERCIAL_ONLY, s.statusOn(LocalDate.parse("2027-01-01")));
|
||||
}
|
||||
|
||||
@Test
|
||||
void newerLines() throws IOException {
|
||||
assertEquals(LocalDate.parse("2027-07-31"), line("4.1.x").ossEnd());
|
||||
assertEquals(LocalDate.parse("2027-12-31"), line("4.2.x").ossEnd());
|
||||
assertEquals(LocalDate.parse("2028-12-31"), line("4.2.x").commercialEnd());
|
||||
}
|
||||
|
||||
@Test
|
||||
void oldLines() throws IOException {
|
||||
assertEquals(Support.Status.COMMERCIAL_ONLY, line("3.5.x").statusOn(DAY));
|
||||
assertEquals(LocalDate.parse("2032-06-30"), line("3.5.x").commercialEnd());
|
||||
assertEquals(Support.Status.ENDED, line("3.3.x").statusOn(DAY));
|
||||
}
|
||||
|
||||
@Test
|
||||
void milestonesAreNotReleases() {
|
||||
assertEquals(List.of("4.1.3", "4.2.0"),
|
||||
Central.gaOnly(List.of("4.2.0", "4.3.0-M1", "4.1.3", "4.2.0-RC2", "4.2.1-SNAPSHOT")));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,349 @@
|
||||
{
|
||||
"_embedded" : {
|
||||
"generations" : [ {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/1.5.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "1.5.x",
|
||||
"initialReleaseDate" : "2017-01-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2019-08-31",
|
||||
"commercialSupportEndDate" : "2020-11-30",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "1.5.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.0.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.0.x",
|
||||
"initialReleaseDate" : "2018-03-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2019-03-31",
|
||||
"commercialSupportEndDate" : "2020-06-30",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.0.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.1.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.1.x",
|
||||
"initialReleaseDate" : "2018-10-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2019-10-31",
|
||||
"commercialSupportEndDate" : "2021-01-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.1.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.2.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.2.x",
|
||||
"initialReleaseDate" : "2019-10-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2020-10-31",
|
||||
"commercialSupportEndDate" : "2022-01-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.2.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.3.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.3.x",
|
||||
"initialReleaseDate" : "2020-05-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2021-05-31",
|
||||
"commercialSupportEndDate" : "2022-08-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.3.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.4.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.4.x",
|
||||
"initialReleaseDate" : "2020-11-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2021-11-30",
|
||||
"commercialSupportEndDate" : "2023-02-28",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.4.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.5.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.5.x",
|
||||
"initialReleaseDate" : "2021-05-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2022-05-31",
|
||||
"commercialSupportEndDate" : "2023-08-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.5.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.6.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.6.x",
|
||||
"initialReleaseDate" : "2021-11-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2022-11-30",
|
||||
"commercialSupportEndDate" : "2024-02-29",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.6.x" ]
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/2.7.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "2.7.x",
|
||||
"initialReleaseDate" : "2022-05-31",
|
||||
"support" : "extended",
|
||||
"ossSupportEndDate" : "2023-06-30",
|
||||
"commercialSupportEndDate" : "2029-06-30",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "2.7.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"enterprise" : "2.7.37"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/3.0.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "3.0.x",
|
||||
"initialReleaseDate" : "2022-11-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2023-12-31",
|
||||
"commercialSupportEndDate" : "2024-12-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "3.0.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"enterprise" : "3.0.20"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/3.1.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "3.1.x",
|
||||
"initialReleaseDate" : "2023-05-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2024-06-30",
|
||||
"commercialSupportEndDate" : "2025-06-30",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "3.1.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"enterprise" : "3.1.21"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/3.2.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "3.2.x",
|
||||
"initialReleaseDate" : "2023-11-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2024-12-31",
|
||||
"commercialSupportEndDate" : "2025-12-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "3.2.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"enterprise" : "3.2.19"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/3.3.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "3.3.x",
|
||||
"initialReleaseDate" : "2024-05-31",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2025-06-30",
|
||||
"commercialSupportEndDate" : "2026-06-30",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "3.3.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"enterprise" : "3.3.20.1"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/3.4.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "3.4.x",
|
||||
"initialReleaseDate" : "2024-11-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2025-12-31",
|
||||
"commercialSupportEndDate" : "2026-12-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "3.4.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"enterprise" : "3.4.20"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/3.5.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "3.5.x",
|
||||
"initialReleaseDate" : "2025-05-31",
|
||||
"support" : "extended",
|
||||
"ossSupportEndDate" : "2026-06-30",
|
||||
"commercialSupportEndDate" : "2032-06-30",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "3.5.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"oss" : "3.5.16",
|
||||
"enterprise" : "3.5.19"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/4.0.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "4.0.x",
|
||||
"initialReleaseDate" : "2025-11-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2026-12-31",
|
||||
"commercialSupportEndDate" : "2027-12-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "4.0.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"oss" : "4.0.10",
|
||||
"enterprise" : "4.0.9.1"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/4.1.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "4.1.x",
|
||||
"initialReleaseDate" : "2026-06-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2027-07-31",
|
||||
"commercialSupportEndDate" : "2028-07-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "4.1.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"oss" : "4.1.3",
|
||||
"enterprise" : "4.1.2.1"
|
||||
}
|
||||
}, {
|
||||
"_links" : {
|
||||
"self" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot/generations/4.2.x"
|
||||
},
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
},
|
||||
"name" : "4.2.x",
|
||||
"initialReleaseDate" : "2026-11-30",
|
||||
"support" : "default",
|
||||
"ossSupportEndDate" : "2027-12-31",
|
||||
"commercialSupportEndDate" : "2028-12-31",
|
||||
"linkedGenerations" : {
|
||||
"spring-boot" : [ "4.2.x" ]
|
||||
},
|
||||
"latestPatch" : {
|
||||
"oss" : "4.2.0"
|
||||
}
|
||||
} ]
|
||||
},
|
||||
"_links" : {
|
||||
"project" : {
|
||||
"href" : "https://api.spring.io/projects/spring-boot"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user