Migrate to Spring Boot 2.2

MSAL

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

org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_2
mod run . --recipe=org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_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 2.1
  2. Migrate to Spring Framework 5.2
  3. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:2.2.x
  4. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:2.2.x
  5. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:2.2.x
  6. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:2.2.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 ^4.10-bin
  10. Upgrade Gradle or Maven dependency versions org.springdoc:*:1.3.x
  11. Use PingHealthIndicator
  12. Use WebTestClientBuilderCustomizer
  13. Use EnableConfigurationProperties.VALIDATOR_BEAN_NAME
  14. Use DiskSpaceHealthIndicator(File, DataSize)
  15. Use spring-boot.run.agents configuration key in spring-boot-maven-plugin
  16. Migrate Spring Boot properties to 2.2
  17. Change type OutputCapture to OutputCaptureRule
  18. Upgrade MyBatis to Spring Boot 2.2