Migrate to Spring Boot 4.2

Proprietary

Migrate applications to the latest Spring Boot 4.2 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.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. Migrate to Spring Modulith 2.2
  5. Migrate to Spring AI 2.1
  6. Replace HttpMessageConverters beans removed in Spring Boot 4.2
  7. Migrate Spring Boot properties to 4.2
  8. Preserve Tomcat relative redirect behavior when upgrading to Spring Boot 4.2
  9. Preserve X-Forwarded-Prefix handling when upgrading to Spring Boot 4.2
  10. Migrate Spring Cloud properties to 2026
  11. Add explicit Gradle Janino versions
  12. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:4.2.0-RC2
  13. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:4.2.0-RC2
  14. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:4.2.0-RC2
  15. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:4.2.0-RC2
  16. Update a Gradle plugin by id org.springframework.boot
  17. Update a Gradle plugin by id org.jetbrains.kotlin.*
  18. Upgrade Maven plugin version org.jetbrains.kotlin:kotlin-maven-plugin:2.4.x
  19. Upgrade Gradle or Maven dependency versions org.jetbrains.kotlin:*:2.4.x
  20. Sync Gradle ext properties with BOM
  21. Migrate KafkaProperties build methods to KafkaConfigBuilder
  22. Migrate to Kafka 4.4