Migrate to Spring Boot 2.4

MSAL

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

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

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.3
  2. Migrate to Spring Framework 5.3
  3. Migrate Spring Boot 2.x projects to JUnit 5 from JUnit 4
  4. Upgrade Gradle or Maven dependency versions org.springframework.boot:*:2.4.x
  5. Upgrade Gradle or Maven dependency versions org.springframework.boot:spring-boot-dependencies:2.4.x
  6. Upgrade Maven plugin version org.springframework.boot:spring-boot-maven-plugin:2.4.x
  7. Upgrade Maven parent project version to org.springframework.boot:spring-boot-starter-parent:2.4.x
  8. Update a Gradle plugin by id org.springframework.boot
  9. Remove exclusion org.junit.vintage:junit-vintage-engine
  10. Remove exclusion junit:junit
  11. Add Gradle or Maven dependency com.google.guava:guava:28.2
  12. Use isEagerFilterInit()
  13. Use setEagerFilterInit(boolean)
  14. Migrate to recommended constants in LogbackLoggingSystemProperties from deprecated values in LoggingSystemProperties
  15. Migrate deprecated Spring Boot EmbeddedDatabaseConnection.HSQL
  16. Merge Spring bootstrap.yml with application.yml
  17. Migrate Spring Boot properties to 2.4
  18. Upgrade MyBatis to Spring Boot 2.4