Upgrade to Spring Boot 2.5

MSAL

Upgrade to Spring Boot 2.5 from any prior 2.x version.

org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_5
mod run . --recipe=org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_5

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 2.4
  2. Migrate to Spring Data JPA 2.5
  3. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:2.5.x
  4. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:2.5.x
  5. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:2.5.x
  6. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:2.5.x
  7. Update a Gradle plugin by id org.springframework.boot
  8. Update a Gradle plugin by id io.spring.dependency-management
  9. Update Gradle wrapper ^6.8-bin
  10. Migrate flyway and liquibase credentials
  11. Upgrade Spock to a Groovy 3 compatible variant
  12. Change Gradle or Maven dependency mysql:mysql-connector-java
  13. Migrate deprecated ActuatorMediaType to ApiVersion#getProducedMimeType
  14. Change type org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessor to org.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor
  15. Change type ResourceProperties to WebProperties$Resources
  16. Replace deprecated PropertyNamingStrategy inner classes and constants
  17. Migrate Spring Boot properties to 2.5
  18. Add @DependsOnDatabaseInitialization to Spring beans and components depending on javax.sql.DataSource
  19. Upgrade MyBatis to Spring Boot 2.5