Upgrade to Spring Boot 2.5
MSALUpgrade to Spring Boot 2.5 from any prior 2.x version.
org. openrewrite. java. spring. boot2. UpgradeSpringBoot_2_5mod run . --recipe= org. openrewrite. java. spring. boot2. UpgradeSpringBoot_2_5Install 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.
- Migrate to Spring Boot 2.4
- Migrate to Spring Data JPA 2.5
- Upgrade Gradle or Maven dependency versions
org.springframework.boot:*:2.5.x - Upgrade Gradle or Maven dependency versions
org.springframework.boot:spring-boot-dependencies:2.5.x - Upgrade Maven plugin version
org.springframework.boot:spring-boot-maven-plugin:2.5.x - Upgrade Maven parent project version to
org.springframework.boot:spring-boot-starter-parent:2.5.x - Update a Gradle plugin by id
org.springframework.boot - Update a Gradle plugin by id
io.spring.dependency-management - Update Gradle wrapper ^6.8-bin
- Migrate flyway and liquibase credentials
- Upgrade Spock to a Groovy 3 compatible variant
- Change Gradle or Maven dependency
mysql:mysql-connector-java - Migrate deprecated
ActuatorMediaTypetoApiVersion#getProducedMimeType - Change type
org.springframework.boot.autoconfigure.data.jpa.EntityManagerFactoryDependsOnPostProcessortoorg.springframework.boot.autoconfigure.orm.jpa.EntityManagerFactoryDependsOnPostProcessor - Change type
ResourcePropertiestoWebProperties$Resources - Replace deprecated
PropertyNamingStrategyinner classes and constants - Migrate Spring Boot properties to 2.5
- Add
@DependsOnDatabaseInitializationto Spring beans and components depending onjavax.sql.DataSource - Upgrade MyBatis to Spring Boot 2.5