Migrate to Spring Boot 3.2

MSAL

Migrate applications to the latest Spring Boot 3.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 3.2.

org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2
mod run . --recipe=org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_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 3.1
  2. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:3.2.x
  3. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:3.2.x
  4. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:3.2.x
  5. Upgrade Gradle or Maven dependency versions org.springframework:*:6.1.x
  6. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:3.2.x
  7. Update a Gradle plugin by id org.springframework.boot
  8. Add Gradle or Maven dependency commons-codec:commons-codec:1.17.x
  9. Migrate to Spring Security 6.2
  10. Migrate Spring Boot properties to 3.2
  11. Migrate to Spring Framework 6.1
  12. Migrate to Spring Cloud 2023
  13. Change type TaskSchedulerBuilder to ThreadPoolTaskExecutorBuilder
  14. Change type TaskSchedulerCustomizer to ThreadPoolTaskSchedulerCustomizer
  15. Change type TaskExecutorBuilder to ThreadPoolTaskExecutorBuilder
  16. Change type TaskExecutorCustomizer to ThreadPoolTaskExecutorCustomizer
  17. Change type PlatformTransactionManagerCustomizer to TransactionManagerCustomizer
  18. Upgrade Gradle or Maven dependency versions org.springdoc:*:2.5.x
  19. Migrate to Hibernate 6.4.x
  20. Use spring.reactor.context-propagation property
  21. Relocate launcher classes
  22. Upgrade MyBatis to Spring Boot 3.2
  23. Upgrade to SpringDoc 2.5
  24. Remove Maven project property jakarta-servlet.version