Migrate to Spring Boot 4.2
ProprietaryMigrate applications to Spring Boot 4.2.0-RC2. This recipe targets a pre-release until Spring Boot 4.2 reaches general availability. It 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.2.
io. moderne. java. spring. boot4. UpgradeSpringBoot_4_2mod run . --recipe= io. moderne. java. spring. boot4. UpgradeSpringBoot_4_2Install 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.1
- Migrate to Spring Framework 7.1
- Migrate Spring Boot AMQP support to RabbitMQ
- Replace
HttpMessageConvertersbeans removed in Spring Boot 4.2 - Migrate Spring Boot properties to 4.2
- Preserve Tomcat relative redirect behavior when upgrading to Spring Boot 4.2
- Migrate Spring Cloud properties to 2026
- Add explicit Gradle Janino versions
- Upgrade Gradle or Maven dependency versions
org.springframework.boot:*:4.2.0-RC1 - Upgrade Gradle or Maven dependency versions
org.springframework.boot:spring-boot-dependencies:4.2.0-RC1 - Upgrade Maven plugin version
org.springframework.boot:spring-boot-maven-plugin:4.2.0-RC1 - Upgrade Maven parent project version to
org.springframework.boot:spring-boot-starter-parent:4.2.0-RC1 - Update a Gradle plugin by id
org.springframework.boot - Update a Gradle plugin by id
org.jetbrains.kotlin.* - Upgrade Maven plugin version
org.jetbrains.kotlin:kotlin-maven-plugin:2.4.x - Upgrade Gradle or Maven dependency versions
org.jetbrains.kotlin:*:2.4.x - Sync Gradle ext properties with BOM
- Migrate
KafkaPropertiesbuild methods toKafkaConfigBuilder - Migrate to Kafka 4.4