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:
Claude
2026-12-03 09:26:27 +05:30
parent 24dc4ba3ff
commit 2a8219a6ee
28 changed files with 1704 additions and 0 deletions
+1
View File
@@ -9,6 +9,7 @@ files.
| Directory | Article | What it demonstrates |
|---|---|---|
| [`boot-versions/`](boot-versions) | [Spring Boot Versions: Release Dates, End of Support (4.0 Ends Dec 31, 2026) and Java Baselines](https://ankurm.com/spring-boot-versions/) | versions and release dates read from Maven Central and support dates from `api.spring.io`, one app built against 2.7.18 to 4.2.0 and booted on JDK 8 to 27, 3.5+ failing below Java 17 while a `--release 11` build still says `BUILD SUCCESS`, 2.7.18 failing to scan Java 25 classes, `layertools` gone after 4.0, jOOQ managed by 4.1+ needing Java 21, and a configuration-property diff from 4.0.10 to 4.2.0 |
| [`openfeature/`](openfeature) | [Feature Flags in Spring Boot with OpenFeature and flagd: Targeting, Gradual Rollout and Failure Modes](https://ankurm.com/spring-boot-feature-flags-openfeature-flagd/) | the OpenFeature Java SDK 1.23.0 and flagd 0.19.0 behind Spring Boot 4.2.0: five flag types and their reasons, targeting by tier and e-mail domain, a 10% rollout measured on 1000 users (100 on, and 0 flipped off when widened to 50%), a flag file edited under a connected client, flagd absent at start (`PROVIDER_NOT_READY`) and killed mid-run (targeted flags fall back to the code default while a static flag keeps answering `CACHED`), unknown keys and type mismatches, `InMemoryProvider` tests of both states and the in-process `FILE` resolver giving the same 100 of 1000 |
| [`resttemplate-to-restclient/`](resttemplate-to-restclient) | [RestTemplate Is Deprecated in Spring Framework 7.1: Migrate to RestClient (and TestRestTemplate to RestTestClient)](https://ankurm.com/resttemplate-to-restclient-migration-guide/) | the `[removal]` warnings on 4.2.0 vs none on 4.1.3, every `RestTemplate` method next to its `RestClient` call on one real server, `exchange()` that stops throwing, the `RestClient.create(restTemplate)` bridge that changes URI encoding, PATCH and `User-Agent` of each default stack, an interceptor that eats the body, `TestRestTemplate` vs `RestTestClient`, and the OpenRewrite recipe's output run for real |
| [`email/`](email) | [Sending Emails in Spring Boot 4: SMTP, HTML Templates, Attachments and Testing](https://ankurm.com/sending-emails-in-spring-boot-3-a-complete-guide/) | the MIME tree of six message shapes (`multipart/mixed` > `related` > `alternative`, and `addInline` before `setText` putting the image first), Thymeleaf HTML and TEXT templates (`[[...]]` still HTML-escapes in TEXT mode), Devanagari subjects as encoded-words and a wrong `defaultEncoding` turning them into `?`, one `send` per message (5 connections) vs the varargs `send` (1), `@Async` returning in milliseconds and a `void @Async` failure that never reaches the caller, a server that never greets blocking forever until `mail.smtp.timeout` is set (`connectiontimeout` does not help), `starttls.enable` authenticating in plain text while `starttls.required` refuses, an email still sent when the transaction rolls back unless it waits for `AFTER_COMMIT`, all against GreenMail on Spring Boot 4.1.2 |
+26
View File
@@ -0,0 +1,26 @@
# boot-versions
Companion module for the ankurm.com article [Spring Boot Versions: Release Dates, End of Support (4.0 Ends Dec 31, 2026) and Java Baselines](https://ankurm.com/spring-boot-versions/). Figures were captured on **3 December 2026**, when the latest releases were 4.2.0, 4.1.3 and 4.0.10.
| Path | What it is |
|---|---|
| `src/main/java/.../VersionReport` | prints versions and release dates from Maven Central, support dates from `api.spring.io`, Java baselines (docs page and the class file version in the published jar), BOM versions, the upcoming-release calendar and a configuration-property diff 4.0.10 to 4.2.0 |
| `src/test/.../SupportTest` | pins the support dates to a saved copy of the API answer; runs offline once dependencies are cached |
| `probe/` | one small application built against 2.7.18, 3.5.16, 4.0.10, 4.1.3 and 4.2.0 (`-Dboot.version=`) |
| `scripts/report.sh` | outputs 01-04 and 07 (set `TODAY=yyyy-MM-dd` to compute day counts for another date) |
| `scripts/matrix.sh` | outputs 05-06: each Boot line on JDK 8, 11, 17, 21, 25 and 27, plus the compile-target limits |
| `scripts/upgrade-and-check.sh` | outputs 08-10: reading your version, `layertools` on 4.0 vs 4.1/4.2, the jOOQ Java floor |
| `output/` | every transcript quoted in the article, and the raw API answer (`api-generations.json`) |
Run (JDK 25 to build; `matrix.sh` also needs the other JDKs):
```bash
mvn test
JDK8=... JDK11=... JDK17=... JDK21=... JDK25=... JDK27=... ./scripts/run-all.sh
```
Reruns will differ as new patches ship and days pass. Maven Central may answer `429` when asked too often; the tool waits and retries.
A probe app that boots on a newer JDK is not a statement of support: only the documented Java range is.
There is deliberately no `docs/` folder: the explanations live in the article.
+13
View File
@@ -0,0 +1,13 @@
# Maven Central, org.springframework.boot:spring-boot-dependencies, read on 2026-12-03
latest GA overall: 4.2.0
line x.y.0 date latest patch patch date patches
2.7 2022-05-19 2.7.18 2023-11-23 19
3.0 2022-11-24 3.0.13 2023-11-23 14
3.1 2023-05-18 3.1.12 2024-05-23 13
3.2 2023-11-23 3.2.12 2024-11-21 13
3.3 2024-05-23 3.3.13 2025-06-19 14
3.4 2024-11-21 3.4.13 2025-12-18 14
3.5 2025-05-22 3.5.16 2026-06-25 17
4.0 2025-11-20 4.0.10 2026-11-19 11
4.1 2026-06-10 4.1.3 2026-11-19 4
4.2 2026-11-19 4.2.0 2026-11-19 1
+19
View File
@@ -0,0 +1,19 @@
# https://api.spring.io/projects/spring-boot/generations, status computed for 2026-12-03
line listed start OSS ends commercial ends kind status OSS days left
2.0.x 2018-03-31 2019-03-31 2020-06-30 default ENDED -
2.1.x 2018-10-31 2019-10-31 2021-01-31 default ENDED -
2.2.x 2019-10-31 2020-10-31 2022-01-31 default ENDED -
2.3.x 2020-05-31 2021-05-31 2022-08-31 default ENDED -
2.4.x 2020-11-30 2021-11-30 2023-02-28 default ENDED -
2.5.x 2021-05-31 2022-05-31 2023-08-31 default ENDED -
2.6.x 2021-11-30 2022-11-30 2024-02-29 default ENDED -
2.7.x 2022-05-31 2023-06-30 2029-06-30 extended COMMERCIAL_ONLY -
3.0.x 2022-11-30 2023-12-31 2024-12-31 default ENDED -
3.1.x 2023-05-31 2024-06-30 2025-06-30 default ENDED -
3.2.x 2023-11-30 2024-12-31 2025-12-31 default ENDED -
3.3.x 2024-05-31 2025-06-30 2026-06-30 default ENDED -
3.4.x 2024-11-30 2025-12-31 2026-12-31 default COMMERCIAL_ONLY -
3.5.x 2025-05-31 2026-06-30 2032-06-30 extended COMMERCIAL_ONLY -
4.0.x 2025-11-30 2026-12-31 2027-12-31 default OSS 28
4.1.x 2026-06-30 2027-07-31 2028-07-31 default OSS 240
4.2.x 2026-11-30 2027-12-31 2028-12-31 default OSS 393
@@ -0,0 +1,13 @@
# class major: read from SpringApplication.class in the published jar (52 = Java 8, 61 = Java 17)
# docs Java: the system requirements page of each line on docs.spring.io ("no page" = 404)
boot major docs Java framework tomcat jackson hibernate junit jooq
2.7.18 52 8 to 21 5.3.31 9.0.83 2.13.5 5.6.15.Final 5.8.2 3.14.16
3.0.13 61 no page 6.0.14 10.1.16 2.14.3 6.1.7.Final 5.9.3 3.17.16
3.1.12 61 no page 6.0.21 10.1.24 2.15.4 6.2.25.Final 5.9.3 3.18.15
3.2.12 61 no page 6.1.15 10.1.33 2.15.4 6.4.10.Final 5.10.5 3.18.22
3.3.13 61 17 to 23 6.1.21 10.1.42 2.17.3 6.5.3.Final 5.10.5 3.19.24
3.4.13 61 17 to 24 6.2.15 10.1.50 2.18.5 6.6.39.Final 5.11.4 3.19.29
3.5.16 61 17 to 25 6.2.19 10.1.55 2.21.4 6.6.53.Final 5.12.2 3.19.35
4.0.10 61 17 to 27 7.0.11 11.0.27 3.1.8 7.2.25.Final 6.0.3 3.19.39
4.1.3 61 17 to 27 7.0.11 11.0.27 3.1.8 7.4.15.Final 6.0.3 3.21.9
4.2.0 61 17 to 27 7.1.0 11.0.27 3.1.8 7.4.15.Final 6.1.3 3.21.9
@@ -0,0 +1,7 @@
# https://calendar.spring.io/releases?start=2026-12-03&end=2027-12-03
# open-source Spring Boot entries only ("(Enterprise)" patches left out)
2026-12-17 Spring Boot 4.0.11
2026-12-17 Spring Boot 4.1.4
2026-12-17 Spring Boot 4.2.1
4.3 GA on Maven Central: false
4.3.x in api.spring.io generations: false
+41
View File
@@ -0,0 +1,41 @@
# same probe app, compiled with --release 17 (2.7.18: --release 8), run on six JDKs, 2026-12-03
== Spring Boot 2.7.18
JDK 1.8.0_514 STARTED boot=2.7.18 framework=5.3.31 java=1.8.0_514 scanned=ScannedBean
JDK 11.0.33.1 STARTED boot=2.7.18 framework=5.3.31 java=11.0.33.1 scanned=ScannedBean
JDK 17.0.21.1 STARTED boot=2.7.18 framework=5.3.31 java=17.0.21.1 scanned=ScannedBean
JDK 21.0.13.1 STARTED boot=2.7.18 framework=5.3.31 java=21.0.13.1 scanned=ScannedBean
JDK 25.0.5.1 STARTED boot=2.7.18 framework=5.3.31 java=25.0.5.1 scanned=ScannedBean
JDK 27.0.1.1 STARTED boot=2.7.18 framework=5.3.31 java=27.0.1.1 scanned=ScannedBean
== Spring Boot 3.5.16
JDK 1.8.0_514 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 11.0.33.1 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 17.0.21.1 STARTED boot=3.5.16 framework=6.2.19 java=17.0.21.1 scanned=ScannedBean
JDK 21.0.13.1 STARTED boot=3.5.16 framework=6.2.19 java=21.0.13.1 scanned=ScannedBean
JDK 25.0.5.1 STARTED boot=3.5.16 framework=6.2.19 java=25.0.5.1 scanned=ScannedBean
JDK 27.0.1.1 STARTED boot=3.5.16 framework=6.2.19 java=27.0.1.1 scanned=ScannedBean
== Spring Boot 4.0.10
JDK 1.8.0_514 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 11.0.33.1 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 17.0.21.1 STARTED boot=4.0.10 framework=7.0.11 java=17.0.21.1 scanned=ScannedBean
JDK 21.0.13.1 STARTED boot=4.0.10 framework=7.0.11 java=21.0.13.1 scanned=ScannedBean
JDK 25.0.5.1 STARTED boot=4.0.10 framework=7.0.11 java=25.0.5.1 scanned=ScannedBean
JDK 27.0.1.1 STARTED boot=4.0.10 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
== Spring Boot 4.1.3
JDK 1.8.0_514 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 11.0.33.1 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 17.0.21.1 STARTED boot=4.1.3 framework=7.0.11 java=17.0.21.1 scanned=ScannedBean
JDK 21.0.13.1 STARTED boot=4.1.3 framework=7.0.11 java=21.0.13.1 scanned=ScannedBean
JDK 25.0.5.1 STARTED boot=4.1.3 framework=7.0.11 java=25.0.5.1 scanned=ScannedBean
JDK 27.0.1.1 STARTED boot=4.1.3 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
== Spring Boot 4.2.0
JDK 1.8.0_514 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 11.0.33.1 FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
JDK 17.0.21.1 STARTED boot=4.2.0 framework=7.1.0 java=17.0.21.1 scanned=ScannedBean
JDK 21.0.13.1 STARTED boot=4.2.0 framework=7.1.0 java=21.0.13.1 scanned=ScannedBean
JDK 25.0.5.1 STARTED boot=4.2.0 framework=7.1.0 java=25.0.5.1 scanned=ScannedBean
JDK 27.0.1.1 STARTED boot=4.2.0 framework=7.1.0 java=27.0.1.1 scanned=ScannedBean
+20
View File
@@ -0,0 +1,20 @@
# the other direction: the application itself compiled for a newer Java, run on JDK 27
boot 2.7.18 --release 21 STARTED boot=2.7.18 framework=5.3.31 java=27.0.1.1 scanned=ScannedBean
boot 2.7.18 --release 25 FAILED Unsupported class file major version 69
boot 2.7.18 --release 27 FAILED Unsupported class file major version 71
boot 3.5.16 --release 21 STARTED boot=3.5.16 framework=6.2.19 java=27.0.1.1 scanned=ScannedBean
boot 3.5.16 --release 25 STARTED boot=3.5.16 framework=6.2.19 java=27.0.1.1 scanned=ScannedBean
boot 3.5.16 --release 27 STARTED boot=3.5.16 framework=6.2.19 java=27.0.1.1 scanned=ScannedBean
boot 4.0.10 --release 21 STARTED boot=4.0.10 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
boot 4.0.10 --release 25 STARTED boot=4.0.10 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
boot 4.0.10 --release 27 STARTED boot=4.0.10 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
boot 4.1.3 --release 21 STARTED boot=4.1.3 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
boot 4.1.3 --release 25 STARTED boot=4.1.3 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
boot 4.1.3 --release 27 STARTED boot=4.1.3 framework=7.0.11 java=27.0.1.1 scanned=ScannedBean
boot 4.2.0 --release 21 STARTED boot=4.2.0 framework=7.1.0 java=27.0.1.1 scanned=ScannedBean
boot 4.2.0 --release 25 STARTED boot=4.2.0 framework=7.1.0 java=27.0.1.1 scanned=ScannedBean
boot 4.2.0 --release 27 STARTED boot=4.2.0 framework=7.1.0 java=27.0.1.1 scanned=ScannedBean
# below the floor: the build with --release 11 against Boot 4.2.0, then the jar on JDK 11
mvn package: BUILD SUCCESS
run on JDK 11: FAILED UnsupportedClassVersionError: org/springframework/boot/loader/launch/JarLauncher has been compiled by a more recent version of the Java Runtime (class file version 61.0)
@@ -0,0 +1,90 @@
# configuration metadata of every org.springframework.boot jar in each BOM, 4.0.10 -> 4.2.0
4.0.10 declares 2618 properties, 4.2.0 declares 2810 (193 new names)
usable on 4.0.10, unusable or absent on 4.2.0: 8
logging.file.clean-history-on-start -> logging.logback.rollingpolicy.clean-history-on-start
logging.file.max-history -> logging.logback.rollingpolicy.max-history
logging.file.max-size -> logging.logback.rollingpolicy.max-file-size
logging.file.total-size-cap -> logging.logback.rollingpolicy.total-size-cap
logging.pattern.rolling-file-name -> logging.logback.rollingpolicy.file-name-pattern
management.metrics.observations.ignored-meters -> management.metrics.observations.include-active-long-task-timer
spring.data.redis.lettuce.cluster.refresh.adaptive (no replacement listed)
spring.datasource.oracleucp.role-name (not in metadata)
newly deprecated (still bound) on 4.2.0: 76
management.appoptics.metrics.export.api-token (no replacement listed)
management.appoptics.metrics.export.batch-size (no replacement listed)
management.appoptics.metrics.export.connect-timeout (no replacement listed)
management.appoptics.metrics.export.floor-times (no replacement listed)
management.appoptics.metrics.export.host-tag (no replacement listed)
management.appoptics.metrics.export.uri (no replacement listed)
management.dynatrace.metrics.export.v1.device-id (no replacement listed)
management.dynatrace.metrics.export.v1.group (no replacement listed)
management.dynatrace.metrics.export.v1.technology-type (no replacement listed)
server.forward-headers-strategy -> server.request.header.forwarded.strategy
server.tomcat.additional-tld-skip-patterns -> server.tomcat.servlet.additional-tld-skip-patterns
server.tomcat.redirect-context-root -> server.tomcat.servlet.redirect-context-root
server.tomcat.use-relative-redirects -> server.tomcat.servlet.use-relative-redirects
spring.devtools.livereload.enabled (no replacement listed)
spring.devtools.livereload.port (no replacement listed)
spring.mvc.pathmatch.matching-strategy (no replacement listed)
spring.pulsar.admin.authentication.param (no replacement listed)
spring.pulsar.admin.authentication.plugin-class-name (no replacement listed)
spring.pulsar.admin.connection-timeout (no replacement listed)
spring.pulsar.admin.read-timeout (no replacement listed)
spring.pulsar.admin.request-timeout (no replacement listed)
spring.pulsar.admin.service-url (no replacement listed)
spring.pulsar.client.authentication.param (no replacement listed)
spring.pulsar.client.authentication.plugin-class-name (no replacement listed)
spring.pulsar.client.connection-timeout (no replacement listed)
spring.pulsar.client.failover.backup-clusters (no replacement listed)
spring.pulsar.client.failover.check-interval (no replacement listed)
spring.pulsar.client.failover.delay (no replacement listed)
spring.pulsar.client.failover.policy (no replacement listed)
spring.pulsar.client.failover.switch-back-delay (no replacement listed)
spring.pulsar.client.lookup-timeout (no replacement listed)
spring.pulsar.client.operation-timeout (no replacement listed)
spring.pulsar.client.service-url (no replacement listed)
spring.pulsar.client.threads.io (no replacement listed)
spring.pulsar.client.threads.listener (no replacement listed)
spring.pulsar.consumer.dead-letter-policy.dead-letter-topic (no replacement listed)
spring.pulsar.consumer.dead-letter-policy.initial-subscription-name (no replacement listed)
spring.pulsar.consumer.dead-letter-policy.max-redeliver-count (no replacement listed)
spring.pulsar.consumer.dead-letter-policy.retry-letter-topic (no replacement listed)
spring.pulsar.consumer.name (no replacement listed)
spring.pulsar.consumer.priority-level (no replacement listed)
spring.pulsar.consumer.read-compacted (no replacement listed)
spring.pulsar.consumer.retry-enable (no replacement listed)
spring.pulsar.consumer.subscription.initial-position (no replacement listed)
spring.pulsar.consumer.subscription.mode (no replacement listed)
spring.pulsar.consumer.subscription.topics-mode (no replacement listed)
spring.pulsar.consumer.subscription.type (no replacement listed)
spring.pulsar.consumer.topics (no replacement listed)
spring.pulsar.consumer.topics-pattern (no replacement listed)
spring.pulsar.defaults.topic.namespace (no replacement listed)
spring.pulsar.defaults.topic.tenant (no replacement listed)
spring.pulsar.function.fail-fast (no replacement listed)
spring.pulsar.function.propagate-failures (no replacement listed)
spring.pulsar.function.propagate-stop-failures (no replacement listed)
spring.pulsar.listener.concurrency (no replacement listed)
spring.pulsar.listener.observation-enabled (no replacement listed)
spring.pulsar.producer.access-mode (no replacement listed)
spring.pulsar.producer.batching-enabled (no replacement listed)
spring.pulsar.producer.cache.expire-after-access (no replacement listed)
spring.pulsar.producer.cache.initial-capacity (no replacement listed)
spring.pulsar.producer.cache.maximum-size (no replacement listed)
spring.pulsar.producer.chunking-enabled (no replacement listed)
spring.pulsar.producer.compression-type (no replacement listed)
spring.pulsar.producer.hashing-scheme (no replacement listed)
spring.pulsar.producer.message-routing-mode (no replacement listed)
spring.pulsar.producer.name (no replacement listed)
spring.pulsar.producer.send-timeout (no replacement listed)
spring.pulsar.producer.topic-name (no replacement listed)
spring.pulsar.reader.name (no replacement listed)
spring.pulsar.reader.read-compacted (no replacement listed)
spring.pulsar.reader.subscription-name (no replacement listed)
spring.pulsar.reader.subscription-role-prefix (no replacement listed)
spring.pulsar.reader.topics (no replacement listed)
spring.pulsar.template.observations-enabled (no replacement listed)
spring.pulsar.transaction.enabled (no replacement listed)
spring.rabbitmq.ssl.verify-hostname (no replacement listed)
+15
View File
@@ -0,0 +1,15 @@
$ unzip -p probe.jar META-INF/MANIFEST.MF | grep -E 'Spring-Boot-Version|Build-Jdk'
Build-Jdk-Spec: 25
Spring-Boot-Version: 4.2.0
$ mvn help:evaluate -Dexpression=boot.version -q -DforceStdout
4.2.0
$ mvn dependency:tree | grep -E 'spring-boot-starter:|spring-core:'
\- org.springframework.boot:spring-boot-starter:jar:4.2.0:compile
| +- org.springframework:spring-core:jar:7.1.0:compile
$ java -jar probe.jar (the banner line and the probe line)
:: Spring Boot :: (v4.2.0)
STARTED boot=4.2.0 framework=7.1.0 java=25.0.5.1 scanned=ScannedBean
@@ -0,0 +1,32 @@
== 4.0.10: java -Djarmode=layertools -jar probe.jar list
Warning: This command is deprecated. Use '-Djarmode=tools list-layers' instead.
dependencies
spring-boot-loader
snapshot-dependencies
application
exit code 0
== 4.0.10: java -Djarmode=tools -jar probe.jar list-layers
dependencies
spring-boot-loader
snapshot-dependencies
application
== 4.1.3: java -Djarmode=layertools -jar probe.jar list
Error: Unsupported jarmode 'layertools'
exit code 1
== 4.1.3: java -Djarmode=tools -jar probe.jar list-layers
dependencies
spring-boot-loader
snapshot-dependencies
application
== 4.2.0: java -Djarmode=layertools -jar probe.jar list
Error: Unsupported jarmode 'layertools'
exit code 1
== 4.2.0: java -Djarmode=tools -jar probe.jar list-layers
dependencies
spring-boot-loader
snapshot-dependencies
application
@@ -0,0 +1,4 @@
# class file major version of org/jooq/DSLContext.class (61 = Java 17, 65 = Java 21)
Spring Boot 4.0.10 manages jOOQ 3.19.39 -> class major 61
Spring Boot 4.1.3 manages jOOQ 3.21.9 -> class major 65
Spring Boot 4.2.0 manages jOOQ 3.21.9 -> class major 65
+349
View File
@@ -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"
}
}
}
+34
View File
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>4.2.0</version>
<relativePath/>
</parent>
<groupId>com.ankurm</groupId>
<artifactId>boot-versions</artifactId>
<version>1.0.0</version>
<description>Spring Boot versions, support dates and Java baselines read from primary sources</description>
<properties>
<java.version>25</java.version>
</properties>
<dependencies>
<dependency>
<groupId>tools.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
+66
View File
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- One application, built against any Boot line:
mvn -f probe/pom.xml package -Dboot.version=4.2.0 -Djava.release=17
A parent version cannot be a property, so the BOM is imported instead. -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ankurm</groupId>
<artifactId>probe</artifactId>
<version>1.0.0</version>
<properties>
<boot.version>4.2.0</boot.version>
<java.release>17</java.release>
<maven.compiler.release>${java.release}</maven.compiler.release>
<maven.compiler.parameters>true</maven.compiler.parameters>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<directory>${project.basedir}/target/boot-${boot.version}-release-${java.release}</directory>
<finalName>probe</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.0</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${boot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<mainClass>com.ankurm.probe.ProbeApplication</mainClass>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
@@ -0,0 +1,21 @@
package com.ankurm.probe;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootVersion;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.SpringVersion;
/** Boots a context (with component scanning) and prints what is really running. Java 8 syntax on purpose. */
@SpringBootApplication
public class ProbeApplication {
public static void main(String[] args) {
try (ConfigurableApplicationContext context = SpringApplication.run(ProbeApplication.class, args)) {
System.out.println("STARTED boot=" + SpringBootVersion.getVersion()
+ " framework=" + SpringVersion.getVersion()
+ " java=" + System.getProperty("java.version")
+ " scanned=" + context.getBean(ScannedBean.class).getClass().getSimpleName());
}
}
}
@@ -0,0 +1,8 @@
package com.ankurm.probe;
import org.springframework.stereotype.Component;
/** Found only if Spring can read this class file during component scanning. */
@Component
public class ScannedBean {
}
+6
View File
@@ -0,0 +1,6 @@
# shared by the other scripts
set -euo pipefail
cd "$(dirname "$0")/.."
TODAY="${TODAY:-$(date -u +%F)}"
# drop JVM banners and anything machine specific from captured output
clean() { sed -e '/^Picked up /d' -e "s#$PWD/##g" -e "s#$HOME#~#g"; }
+54
View File
@@ -0,0 +1,54 @@
#!/usr/bin/env bash
# Builds the probe app against each Boot line and boots it on each JDK.
# Set JDK8 JDK11 JDK17 JDK21 JDK25 JDK27 to the JDK home directories (Temurin was used here).
source "$(dirname "$0")/env.sh"
unset _JAVA_OPTIONS
JDK8=${JDK8:?} JDK11=${JDK11:?} JDK17=${JDK17:?} JDK21=${JDK21:?} JDK25=${JDK25:?} JDK27=${JDK27:?}
BOOTS="2.7.18 3.5.16 4.0.10 4.1.3 4.2.0"
build() { # boot release javac-jdk
JAVA_HOME="$3" mvn -B -q -f probe/pom.xml package -Dboot.version="$1" -Djava.release="$2" >/dev/null
}
boot() { # jdk jar: one result line
local log; log=$("$1/bin/java" -jar "$2" --logging.level.root=WARN --spring.main.banner-mode=off 2>&1) || true
if grep -q '^STARTED' <<<"$log"; then
grep '^STARTED' <<<"$log"
else
printf 'FAILED '
grep -o -m1 -E 'Unsupported class file major version [0-9]+' <<<"$log" | head -1 | grep . \
|| grep -o -m1 -E 'UnsupportedClassVersionError: [^ ]+ has been compiled by a more recent version of the Java Runtime \(class file version [0-9.]+\)' <<<"$log" \
|| tail -n1 <<<"$log"
fi
}
for v in $BOOTS; do
rel=17; [[ $v == 2.* ]] && rel=8
build "$v" "$rel" "$JDK25"
done
{
echo "# same probe app, compiled with --release 17 (2.7.18: --release 8), run on six JDKs, $TODAY"
for v in $BOOTS; do
rel=17; [[ $v == 2.* ]] && rel=8
echo; echo "== Spring Boot $v"
for j in "$JDK8" "$JDK11" "$JDK17" "$JDK21" "$JDK25" "$JDK27"; do
n=$("$j/bin/java" -version 2>&1 | grep -m1 ' version ' | cut -d'"' -f2)
printf 'JDK %-10s ' "$n"; boot "$j" "probe/target/boot-$v-release-$rel/probe.jar"
done
done
} | clean | tee output/05-boot-matrix.txt
{
echo "# the other direction: the application itself compiled for a newer Java, run on JDK 27"
for v in $BOOTS; do
for rel in 21 25 27; do
jdk=$JDK25; [[ $rel == 27 ]] && jdk=$JDK27
build "$v" "$rel" "$jdk"
printf 'boot %-7s --release %s ' "$v" "$rel"; boot "$JDK27" "probe/target/boot-$v-release-$rel/probe.jar"
done
done
echo
echo "# below the floor: the build with --release 11 against Boot 4.2.0, then the jar on JDK 11"
JAVA_HOME="$JDK25" mvn -B -f probe/pom.xml package -Dboot.version=4.2.0 -Djava.release=11 2>&1 \
| grep -m1 -E 'BUILD (SUCCESS|FAILURE)' | sed 's/^\[[A-Z]*\] /mvn package: /'
printf 'run on JDK 11: '; boot "$JDK11" probe/target/boot-4.2.0-release-11/probe.jar
} | clean | sed "s#$(dirname "$PWD")/##g" | tee output/06-java-limits.txt
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Regenerates output/01..04 and 07 from Maven Central, api.spring.io, calendar.spring.io and docs.spring.io.
source "$(dirname "$0")/env.sh"
mvn -B -q package dependency:build-classpath -Dmdep.outputFile=target/cp.txt >/dev/null
CP="target/classes:$(cat target/cp.txt)"
run() { java -cp "$CP" com.ankurm.bootversions.VersionReport "$1" "$TODAY" | clean | tee "output/$2"; }
run latest 01-maven-latest.txt
run support 02-support-dates.txt
run baselines 03-bom-and-java-baselines.txt
run calendar 04-calendar-and-4.3.txt
run properties 07-properties-4.0-to-4.2.txt
+7
View File
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
# Regenerates every file in output/. Needs network access and the JDK8..JDK27 variables (see matrix.sh).
set -euo pipefail
here="$(cd "$(dirname "$0")" && pwd)"
JAVA_HOME="${JDK25:?}" PATH="$JDK25/bin:$PATH" "$here/report.sh"
"$here/matrix.sh"
"$here/upgrade-and-check.sh"
+45
View File
@@ -0,0 +1,45 @@
#!/usr/bin/env bash
# Run after matrix.sh. 08: how to read the version of a project and of a jar. 09: layertools, gone since 4.1.
source "$(dirname "$0")/env.sh"
unset _JAVA_OPTIONS
JAVA_HOME=${JDK25:?}
export JAVA_HOME
JAR=probe/target/boot-4.2.0-release-17/probe.jar
M="mvn -B -f probe/pom.xml -Dboot.version=4.2.0"
{
echo "\$ unzip -p probe.jar META-INF/MANIFEST.MF | grep -E 'Spring-Boot-Version|Build-Jdk'"
unzip -p $JAR META-INF/MANIFEST.MF | grep -E 'Spring-Boot-Version|Build-Jdk' | tr -d '\r'
echo
echo "\$ mvn help:evaluate -Dexpression=boot.version -q -DforceStdout"
$M help:evaluate -Dexpression=boot.version -q -DforceStdout | grep -v '^Picked'; echo
echo
echo "\$ mvn dependency:tree | grep -E 'spring-boot-starter:|spring-core:'"
$M dependency:tree | grep -E 'spring-boot-starter:|spring-core:' | sed 's/^\[INFO\] //'
echo
echo "\$ java -jar probe.jar (the banner line and the probe line)"
"$JAVA_HOME/bin/java" -jar $JAR 2>&1 | grep -E ':: Spring Boot ::|^STARTED'
} | clean | tee output/08-which-version.txt
{
for v in 4.0.10 4.1.3 4.2.0; do
j=probe/target/boot-$v-release-17/probe.jar
echo "== $v: java -Djarmode=layertools -jar probe.jar list"
code=0; out=$("$JAVA_HOME/bin/java" -Djarmode=layertools -jar $j list 2>&1) || code=$?
grep -v '^Picked' <<<"$out" | head -n 6; echo "exit code $code"
echo "== $v: java -Djarmode=tools -jar probe.jar list-layers"
"$JAVA_HOME/bin/java" -Djarmode=tools -jar $j list-layers 2>&1 | grep -v '^Picked' || true
echo
done
} | clean | tee output/09-layertools-4.0-to-4.2.txt
{
set +o pipefail
echo "# class file major version of org/jooq/DSLContext.class (61 = Java 17, 65 = Java 21)"
for pair in 4.0.10:3.19.39 4.1.3:3.21.9 4.2.0:3.21.9; do
j=${pair#*:}
mvn -B -q dependency:get -Dartifact=org.jooq:jooq:$j >/dev/null
repo="$HOME/.m2/repository/org/jooq/jooq/$j/jooq-$j.jar"
major=$(unzip -p "$repo" org/jooq/DSLContext.class | head -c 8 | od -An -tu1 | awk '{print $7*256+$8}')
echo "Spring Boot ${pair%:*} manages jOOQ $j -> class major $major"
done
} | clean | tee output/10-jooq-java-floor.txt
@@ -0,0 +1,46 @@
package com.ankurm.bootversions;
import java.nio.file.Files;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.w3c.dom.Element;
/** spring-boot-dependencies: the version properties and the Boot modules one release manages. */
public record Bom(String version, Map<String, String> properties, List<String> bootModules) {
static Bom read(Central central, String version) throws Exception {
var path = central.file("org/springframework/boot/spring-boot-dependencies/" + version
+ "/spring-boot-dependencies-" + version + ".pom");
return parse(version, Files.readAllBytes(path));
}
static Bom parse(String version, byte[] pom) throws Exception {
Element project = Central.xml(pom).getDocumentElement();
Map<String, String> properties = new LinkedHashMap<>();
Element props = Central.child(project, "properties");
for (var n = props.getFirstChild(); n != null; n = n.getNextSibling()) {
if (n instanceof Element e) {
properties.put(e.getTagName(), e.getTextContent().trim());
}
}
List<String> modules = new ArrayList<>();
var dependencies = project.getElementsByTagName("dependency");
for (int i = 0; i < dependencies.getLength(); i++) {
Element d = (Element) dependencies.item(i);
if ("org.springframework.boot".equals(Central.child(d, "groupId").getTextContent())
&& Central.child(d, "classifier") == null) {
String id = Central.child(d, "artifactId").getTextContent();
if (!modules.contains(id)) {
modules.add(id);
}
}
}
return new Bom(version, properties, modules);
}
String property(String name) {
return properties.getOrDefault(name, "-");
}
}
@@ -0,0 +1,124 @@
package com.ankurm.bootversions;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.LocalDate;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.regex.Pattern;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
/** Reads Maven Central directly. No search API: only repository files. */
public final class Central {
static final String REPO = "https://repo1.maven.org/maven2/";
private static final Pattern GA = Pattern.compile("\\d+\\.\\d+\\.\\d+");
private final HttpClient http = HttpClient.newBuilder()
.followRedirects(HttpClient.Redirect.NORMAL)
.proxy(java.net.ProxySelector.getDefault())
.build();
private final Path cache = Path.of("target", "cache");
public String text(String url) throws IOException, InterruptedException {
HttpResponse<String> r = send(request(url).build(), HttpResponse.BodyHandlers.ofString());
check(url, r.statusCode());
return r.body();
}
/** Maven Central answers 429 when asked too fast, so wait and try again. */
private <T> HttpResponse<T> send(HttpRequest request, HttpResponse.BodyHandler<T> handler)
throws IOException, InterruptedException {
HttpResponse<T> r = http.send(request, handler);
for (int attempt = 1; attempt <= 6 && r.statusCode() == 429; attempt++) {
Thread.sleep(5_000L * attempt);
r = http.send(request, handler);
}
return r;
}
/** Downloads a repository file once and keeps it under target/cache. */
public Path file(String path) throws IOException, InterruptedException {
Path target = cache.resolve(path);
if (!Files.exists(target)) {
Files.createDirectories(target.getParent());
HttpResponse<byte[]> r = send(request(REPO + path).build(), HttpResponse.BodyHandlers.ofByteArray());
check(path, r.statusCode());
Files.write(target, r.body());
}
return target;
}
/** The day the file landed on Maven Central, in UTC, from its Last-Modified header. */
public LocalDate publishedOn(String path) throws IOException, InterruptedException {
HttpResponse<Void> r = send(request(REPO + path).method("HEAD", HttpRequest.BodyPublishers.noBody()).build(),
HttpResponse.BodyHandlers.discarding());
check(path, r.statusCode());
String header = r.headers().firstValue("last-modified").orElseThrow();
return ZonedDateTime.parse(header, DateTimeFormatter.RFC_1123_DATE_TIME)
.withZoneSameInstant(ZoneOffset.UTC).toLocalDate();
}
/** All GA versions (no -M, -RC, -SNAPSHOT) of an artifact, oldest first. */
public List<String> gaVersions(String groupPath, String artifact) throws Exception {
Document doc = xml(text(REPO + groupPath + "/" + artifact + "/maven-metadata.xml").getBytes());
var nodes = doc.getElementsByTagName("version");
List<String> all = new ArrayList<>();
for (int i = 0; i < nodes.getLength(); i++) {
all.add(nodes.item(i).getTextContent().trim());
}
return gaOnly(all);
}
static List<String> gaOnly(List<String> versions) {
return versions.stream().filter(v -> GA.matcher(v).matches()).sorted(byVersion()).toList();
}
static Comparator<String> byVersion() {
return Comparator.<String>comparingInt(v -> part(v, 0))
.thenComparingInt(v -> part(v, 1))
.thenComparingInt(v -> part(v, 2));
}
private static int part(String v, int i) {
return Integer.parseInt(v.split("\\.")[i]);
}
static Document xml(byte[] bytes) throws Exception {
var factory = DocumentBuilderFactory.newInstance();
factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);
return factory.newDocumentBuilder().parse(new ByteArrayInputStream(bytes));
}
static Element child(Element parent, String name) {
for (Node n = parent.getFirstChild(); n != null; n = n.getNextSibling()) {
if (n instanceof Element e && e.getTagName().equals(name)) {
return e;
}
}
return null;
}
private static HttpRequest.Builder request(String url) {
return HttpRequest.newBuilder(URI.create(url)).header("User-Agent", "boot-versions-report");
}
private static void check(String what, int status) throws IOException {
if (status != 200) {
throw new IOException("HTTP " + status + " for " + what);
}
}
}
@@ -0,0 +1,41 @@
package com.ankurm.bootversions;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
import java.util.ArrayList;
import java.util.List;
import tools.jackson.databind.JsonNode;
import tools.jackson.databind.json.JsonMapper;
/** One "generation" (minor line) as published by api.spring.io. */
public record Support(String line, LocalDate listedRelease, LocalDate ossEnd,
LocalDate commercialEnd, String kind) {
public enum Status { OSS, COMMERCIAL_ONLY, ENDED }
/** The end date itself still counts as supported. */
public Status statusOn(LocalDate day) {
if (!day.isAfter(ossEnd)) {
return Status.OSS;
}
return day.isAfter(commercialEnd) ? Status.ENDED : Status.COMMERCIAL_ONLY;
}
public long ossDaysLeft(LocalDate day) {
return ChronoUnit.DAYS.between(day, ossEnd);
}
public static List<Support> parse(String generationsJson) {
List<Support> out = new ArrayList<>();
JsonNode root = JsonMapper.shared().readTree(generationsJson);
for (JsonNode g : root.path("_embedded").path("generations")) {
out.add(new Support(
g.path("name").asString(),
LocalDate.parse(g.path("initialReleaseDate").asString()),
LocalDate.parse(g.path("ossSupportEndDate").asString()),
LocalDate.parse(g.path("commercialSupportEndDate").asString()),
g.path("support").asString()));
}
return out;
}
}
@@ -0,0 +1,211 @@
package com.ankurm.bootversions;
import java.io.DataInputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.jar.JarFile;
import java.util.regex.Pattern;
import tools.jackson.databind.JsonNode;
import tools.jackson.databind.json.JsonMapper;
/**
* Prints the tables behind the article. Usage:
* {@code VersionReport latest|support|baselines|calendar|properties [yyyy-MM-dd]}
*/
public final class VersionReport {
static final List<String> LINES = List.of("2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "3.5", "4.0", "4.1", "4.2");
private static final String BOOT = "org/springframework/boot/";
private static final String API = "https://api.spring.io/projects/spring-boot/generations";
private final Central central = new Central();
public static void main(String[] args) throws Exception {
String command = args.length > 0 ? args[0] : "latest";
LocalDate today = args.length > 1 ? LocalDate.parse(args[1]) : LocalDate.now();
var report = new VersionReport();
switch (command) {
case "latest" -> report.latest(today);
case "support" -> report.support(today);
case "baselines" -> report.baselines();
case "calendar" -> report.calendar(today);
case "properties" -> report.properties("4.0.10", "4.2.0");
default -> throw new IllegalArgumentException("unknown command " + command);
}
}
private Map<String, String> latestPatchPerLine() throws Exception {
Map<String, String> latest = new LinkedHashMap<>();
List<String> all = central.gaVersions("org/springframework/boot", "spring-boot-dependencies");
for (String line : LINES) {
all.stream().filter(v -> v.startsWith(line + ".")).reduce((a, b) -> b)
.ifPresent(v -> latest.put(line, v));
}
return latest;
}
private static String pom(String version) {
return BOOT + "spring-boot-dependencies/" + version + "/spring-boot-dependencies-" + version + ".pom";
}
void latest(LocalDate today) throws Exception {
List<String> all = central.gaVersions("org/springframework/boot", "spring-boot-dependencies");
System.out.println("# Maven Central, org.springframework.boot:spring-boot-dependencies, read on " + today);
System.out.println("latest GA overall: " + all.getLast());
System.out.printf("%-6s %-12s %-14s %-13s %s%n", "line", "x.y.0 date", "latest patch", "patch date", "patches");
for (var e : latestPatchPerLine().entrySet()) {
long count = all.stream().filter(v -> v.startsWith(e.getKey() + ".")).count();
System.out.printf("%-6s %-12s %-14s %-13s %d%n", e.getKey(),
central.publishedOn(pom(e.getKey() + ".0")), e.getValue(),
central.publishedOn(pom(e.getValue())), count);
}
}
void support(LocalDate today) throws Exception {
String json = central.text(API);
Files.createDirectories(Path.of("output"));
Files.writeString(Path.of("output", "api-generations.json"), json);
System.out.println("# " + API + ", status computed for " + today);
System.out.printf("%-7s %-13s %-12s %-15s %-9s %-16s %s%n", "line", "listed start", "OSS ends",
"commercial ends", "kind", "status", "OSS days left");
for (Support s : Support.parse(json)) {
if (s.line().startsWith("1.")) {
continue;
}
var status = s.statusOn(today);
System.out.printf("%-7s %-13s %-12s %-15s %-9s %-16s %s%n", s.line(), s.listedRelease(), s.ossEnd(),
s.commercialEnd(), s.kind(), status, status == Support.Status.OSS ? s.ossDaysLeft(today) : "-");
}
}
/** The class file major version of SpringApplication is the real compile floor of a release. */
private int classMajor(String version) throws Exception {
Path jar = central.file(BOOT + "spring-boot/" + version + "/spring-boot-" + version + ".jar");
try (var file = new JarFile(jar.toFile());
var in = new DataInputStream(file.getInputStream(
file.getEntry("org/springframework/boot/SpringApplication.class")))) {
in.readInt();
in.readUnsignedShort();
return in.readUnsignedShort();
}
}
private String documentedJava(String line, String version) throws InterruptedException {
try {
String url = "https://docs.spring.io/spring-boot/" + switch (line) {
case "2.7" -> "docs/2.7.18/reference/html/getting-started.html";
case "4.2" -> "system-requirements.html";
default -> line + "/system-requirements.html";
};
String page = central.text(url).replaceAll("<[^>]+>", "").replaceAll("\\s+", " ");
var m = Pattern.compile("Spring Boot " + Pattern.quote(version)
+ " requires (?:at least )?Java (\\d+) and is compatible (?:with )?(?:versions )?up to and including (?:Java )?(\\d+)")
.matcher(page);
return m.find() ? m.group(1) + " to " + m.group(2) : "not parsed";
} catch (IOException e) {
return "no page";
}
}
void baselines() throws Exception {
System.out.println("# class major: read from SpringApplication.class in the published jar (52 = Java 8, 61 = Java 17)");
System.out.println("# docs Java: the system requirements page of each line on docs.spring.io (\"no page\" = 404)");
System.out.printf("%-8s %-6s %-12s %-10s %-9s %-10s %-9s %-8s %s%n", "boot", "major", "docs Java",
"framework", "tomcat", "jackson", "hibernate", "junit", "jooq");
for (var e : latestPatchPerLine().entrySet()) {
String v = e.getValue();
Bom bom = Bom.read(central, v);
String jackson = bom.properties().containsKey("jackson-bom.version")
? bom.property("jackson-bom.version") : "-";
System.out.printf("%-8s %-6d %-12s %-10s %-9s %-10s %-9s %-8s %s%n", v, classMajor(v),
documentedJava(e.getKey(), v), bom.property("spring-framework.version"),
bom.property("tomcat.version"), jackson, bom.property("hibernate.version"),
bom.property("junit-jupiter.version"), bom.property("jooq.version"));
}
}
void calendar(LocalDate today) throws Exception {
String url = "https://calendar.spring.io/releases?start=" + today + "&end=" + today.plusYears(1);
System.out.println("# " + url);
System.out.println("# open-source Spring Boot entries only (\"(Enterprise)\" patches left out)");
for (JsonNode e : JsonMapper.shared().readTree(central.text(url))) {
String title = e.path("title").asString();
if (title.startsWith("Spring Boot ") && !title.contains("Enterprise")) {
System.out.println(e.path("start").asString() + " " + title);
}
}
var versions = central.gaVersions("org/springframework/boot", "spring-boot-dependencies");
System.out.println("4.3 GA on Maven Central: " + versions.stream().anyMatch(v -> v.startsWith("4.3.")));
System.out.println("4.3.x in api.spring.io generations: "
+ Support.parse(central.text(API)).stream().anyMatch(s -> s.line().equals("4.3.x")));
}
/** Every configuration property each module jar of a release declares: name to deprecation level. */
private Map<String, JsonNode> propertiesOf(String version) throws Exception {
Map<String, JsonNode> out = new TreeMap<>();
for (String module : Bom.read(central, version).bootModules()) {
Path jar;
try {
jar = central.file(BOOT + module + "/" + version + "/" + module + "-" + version + ".jar");
} catch (IOException noJar) {
continue;
}
try (var file = new JarFile(jar.toFile())) {
var entry = file.getEntry("META-INF/spring-configuration-metadata.json");
if (entry == null) {
continue;
}
try (var in = file.getInputStream(entry)) {
for (JsonNode p : JsonMapper.shared().readTree(in).path("properties")) {
out.put(p.path("name").asString(), p);
}
}
}
}
return out;
}
void properties(String from, String to) throws Exception {
Map<String, JsonNode> before = propertiesOf(from);
Map<String, JsonNode> after = propertiesOf(to);
List<String> gone = new ArrayList<>();
List<String> newlyDeprecated = new ArrayList<>();
before.forEach((name, old) -> {
JsonNode now = after.get(name);
boolean wasDead = old.path("deprecation").path("level").asString("").equals("error");
if (wasDead) {
return;
}
if (now == null || now.path("deprecation").path("level").asString("").equals("error")) {
gone.add(line(name, now));
} else if (!old.has("deprecation") && now.has("deprecation")) {
newlyDeprecated.add(line(name, now));
}
});
long added = after.keySet().stream().filter(n -> !before.containsKey(n)).count();
System.out.println("# configuration metadata of every org.springframework.boot jar in each BOM, " + from + " -> " + to);
System.out.println(from + " declares " + before.size() + " properties, " + to + " declares " + after.size()
+ " (" + added + " new names)");
System.out.println();
System.out.println("usable on " + from + ", unusable or absent on " + to + ": " + gone.size());
gone.forEach(System.out::println);
System.out.println();
System.out.println("newly deprecated (still bound) on " + to + ": " + newlyDeprecated.size());
newlyDeprecated.forEach(System.out::println);
}
private static String line(String name, JsonNode now) {
if (now == null) {
return " " + name + " (not in metadata)";
}
String replacement = now.path("deprecation").path("replacement").asString("");
return " " + name + (replacement.isEmpty() ? " (no replacement listed)" : " -> " + replacement);
}
}
@@ -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"
}
}
}