Migrate to Spring Security 5.7

MSAL

Migrate applications to the latest Spring Security 5.7 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.

org.openrewrite.java.spring.security5.UpgradeSpringSecurity_5_7
mod run . --recipe=org.openrewrite.java.spring.security5.UpgradeSpringSecurity_5_7

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. Upgrade Gradle or Maven dependency versions org.springframework.security:*:5.7.x
  2. Upgrade Gradle or Maven dependency versions org.springframework.security:spring-security-oauth2-authorization-server:0.3.x
  3. Spring Security 5.4 introduces the ability to configure HttpSecurity by creating a SecurityFilterChain bean