Migrate to Spring Boot 4.2

Proprietary

Migrate 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_2
mod run . --recipe=io.moderne.java.spring.boot4.UpgradeSpringBoot_4_2

Install 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.

  1. Migrate to Spring Boot 4.1
  2. Migrate to Spring Framework 7.1
  3. Migrate Spring Boot AMQP support to RabbitMQ
  4. Replace HttpMessageConverters beans removed in Spring Boot 4.2
  5. Migrate Spring Boot properties to 4.2
  6. Preserve Tomcat relative redirect behavior when upgrading to Spring Boot 4.2
  7. Migrate Spring Cloud properties to 2026
  8. Add explicit Gradle Janino versions
  9. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:4.2.0-RC1
  10. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:4.2.0-RC1
  11. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:4.2.0-RC1
  12. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:4.2.0-RC1
  13. Update a Gradle plugin by id org.springframework.boot
  14. Update a Gradle plugin by id org.jetbrains.kotlin.*
  15. Upgrade Maven plugin version org.jetbrains.kotlin:kotlin-maven-plugin:2.4.x
  16. Upgrade Gradle or Maven dependency versions org.jetbrains.kotlin:*:2.4.x
  17. Sync Gradle ext properties with BOM
  18. Migrate KafkaProperties build methods to KafkaConfigBuilder
  19. Migrate to Kafka 4.4