Migrate to Spring Boot 3.1

MSAL

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

org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1
mod run . --recipe=org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1

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.0
  2. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:3.1.x
  3. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:3.1.x
  4. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:3.1.x
  5. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:3.1.x
  6. Update a Gradle plugin by id org.springframework.boot
  7. Migrate to Spring Security 6.1
  8. Migrate Spring Boot properties to 3.1
  9. Replace RepositoryRestConfigurerAdapter with RepositoryRestConfigurer
  10. Upgrade Gradle or Maven dependency versions org.springdoc:*:2.2.x
  11. Migrate to Hibernate 6.2.x
  12. Mockito 4 to 5.x upgrade only
  13. Upgrade to SpringDoc 2.2