upgrade to Spring Boot 4.2.1

This commit is contained in:
Michael Hoennig
2026-06-09 16:05:12 +02:00
parent a030f7abb6
commit 117caf12a9
13 changed files with 103 additions and 102 deletions
+7 -7
View File
@@ -2,11 +2,11 @@
**Status:**
- proposed: 2026-06-09
- accepted: -
- accepted: 2026-06-09
- rejected: -
- superseded: -
**Decision [proposed]:** Gradle 8.14 — minimum required by Spring Boot 4.0; Gradle 9 deferred until openapi-generator and ktlint-gradle confirm compatibility.
**Decision [accepted]:** Gradle 8.14.5 — minimum required by Spring Boot 4.0; Gradle 9 deferred until openapi-generator and ktlint-gradle confirm compatibility.
## Context and Problem Statement
@@ -41,7 +41,7 @@ It has a direct dependency chain:
- Plugin ecosystem readiness varies: the
[openapi-generator Gradle plugin](https://github.com/OpenAPITools/openapi-generator/issues/22084)
has a known Gradle 9 issue in its generated build files, and
[ktlint-gradle 12.1.1](https://github.com/JLLeitschuh/ktlint-gradle) Gradle 9 support
[ktlint-gradle 14.2.0](https://github.com/JLLeitschuh/ktlint-gradle) Gradle 9 support
needs verification.
- The [`io.spring.dependency-management` plugin](https://github.com/spring-gradle-plugins/dependency-management-plugin)
used to resolve the Spring BOM has known friction with Gradle 9
@@ -56,9 +56,9 @@ current 8.8 is necessary regardless of whether Gradle 9 is chosen.
* Gradle 8.14 (minimum for Spring Boot 4.0)
* Gradle 9.x
### [Gradle 8.x](https://docs.gradle.org/8.8/release-notes.html)
### [Gradle 8.x](https://docs.gradle.org/8.14.5/release-notes.html)
The currently configured series (wrapper at 8.8, to be bumped to 8.14+ for Spring Boot 4.0).
The currently configured series (wrapper at 8.14.5, upgraded from 8.8 as part of the Spring Boot 4.0 migration).
#### Advantages
@@ -91,7 +91,7 @@ The current major release (9.5.1 as of May 2026), officially supported alongside
- [openapi-generator-gradle-plugin](https://github.com/OpenAPITools/openapi-generator/issues/22084)
has a known Gradle 9 issue in generated `build.gradle` files; impact on the spec-first
code generation task specifically needs verification.
- [ktlint-gradle 12.1.1](https://github.com/JLLeitschuh/ktlint-gradle) Gradle 9 support
- [ktlint-gradle 14.2.0](https://github.com/JLLeitschuh/ktlint-gradle) Gradle 9 support
needs verification.
- Configuration Cache mandatory means any currently uncached plugin will break the build
until updated, complicating initial setup.
@@ -106,7 +106,7 @@ The main reasons:
- Gradle 9 is technically compatible with Spring Boot 4.0, but the mandatory Configuration Cache
creates unacceptable risk until the openapi-generator-gradle-plugin Gradle 9 compatibility
is confirmed (see [issue #22084](https://github.com/OpenAPITools/openapi-generator/issues/22084)).
- ktlint-gradle 12.1.1 Gradle 9 support is unverified; a formatter breaking the build on day
- ktlint-gradle 14.2.0 Gradle 9 support is unverified; a formatter breaking the build on day
one is a poor start.
Upgrade trigger: revisit Gradle 9 once openapi-generator and ktlint-gradle confirm support.