Migrate to Spring Boot 4.1
ProprietaryMigrate applications to the latest Spring Boot 4.1 release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework, Spring Data, etc) that are required as part of the migration to Spring Boot 4.1.
io. moderne. java. spring. boot4. UpgradeSpringBoot_4_1mod run . --recipe= io. moderne. java. spring. boot4. UpgradeSpringBoot_4_1Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Migrate to Spring Boot 4.0
- Spring Boot 4.1 type relocations
- Migrate embedded Derby to H2
- Migrate to Java 21 when using jOOQ
- Migrate Spring Boot properties to 4.1
- Migrate
layertoolsjarmode totools - Comment out deprecated DevTools LiveReload properties
- Preserve Reactor HTTP client defaults when upgrading to Spring Boot 4.1
- Simplify null checks on
Optional@ConfigurationPropertiesparameters - Migrate to Spring Kafka 4.1
- Migrate to Kafka 4.2
- Migrate to Hibernate 7.4.x
- Add
@ProjectedPayloadto web projection interfaces - Migrate
RestTemplatetoRestClient - Upgrade Gradle or Maven dependency versions
org.springframework.boot:*:4.1.x - Upgrade Gradle or Maven dependency versions
org.springframework.boot:spring-boot-dependencies:4.1.x - Upgrade Maven plugin version
org.springframework.boot:spring-boot-maven-plugin:4.1.x - Upgrade Maven parent project version to
org.springframework.boot:spring-boot-starter-parent:4.1.x - Update a Gradle plugin by id
org.springframework.boot - Migrate to Spring Boot 4.1 modular starters
- Migrate to Spring gRPC 1.1 (Spring Boot 4.1)
- Update a Gradle plugin by id
org.jetbrains.kotlin.* - Upgrade Maven plugin version
org.jetbrains.kotlin:kotlin-maven-plugin:2.3.x - Upgrade Gradle or Maven dependency versions
org.jetbrains.kotlin:*:2.3.x - Sync Gradle ext properties with BOM