Migrate to Spring Framework 5.1

MSAL

Migrate applications to the latest Spring Framework 5.1 release.

org.openrewrite.java.spring.framework.UpgradeSpringFramework_5_1
mod run . --recipe=org.openrewrite.java.spring.framework.UpgradeSpringFramework_5_1

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 Framework 5.0
  2. Upgrade Gradle or Maven dependency versions org.springframework:*:5.1.x
  3. Use Environment#acceptsProfiles(Profiles)
  4. Upgrade Gradle or Maven dependency versions org.springframework.security:*:5.1.x
  5. Change type Required to Autowired