Migrate to Spring Boot 2.6
MSALMigrate applications to the latest Spring Boot 2.6 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 2.6.
org. openrewrite. java. spring. boot2. UpgradeSpringBoot_2_6mod run . --recipe= org. openrewrite. java. spring. boot2. UpgradeSpringBoot_2_6Install 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.
- Upgrade to Spring Boot 2.5
- Upgrade Gradle or Maven dependency versions
org.springframework.boot:*:2.6.x - Upgrade Gradle or Maven dependency versions
org.springframework.boot:spring-boot-dependencies:2.6.x - Upgrade Maven plugin version
org.springframework.boot:spring-boot-maven-plugin:2.6.x - Upgrade Maven parent project version to
org.springframework.boot:spring-boot-starter-parent:2.6.x - Update a Gradle plugin by id
org.springframework.boot - Migrate from SpringFox Swagger to SpringDoc and OpenAPI
- Upgrade Gradle or Maven dependency versions
org.springdoc:*:1.5.x - Migrate Spring Boot properties to 2.6
- Upgrade Gradle or Maven dependency versions
org.springframework.cloud:spring-cloud-dependencies:2021.0.x - Upgrade MyBatis to Spring Boot 2.6