spring-security-samples icon indicating copy to clipboard operation
spring-security-samples copied to clipboard

Create sample demonstrating Spring Security upgrades through OpenRewrite

Open timtebeek opened this issue 2 years ago • 0 comments

OpenRewrite supports various upgrade recipes related to Spring Security: https://docs.openrewrite.org/reference/recipes/java/spring/security5 https://docs.openrewrite.org/reference/recipes/java/spring/security6 These can be run individually to upgrade to Spring Boot 5.8 or 6.0, or be run as part of a Sping Boot 3 Migration.

A new sample module can be added that contains a deliberately outdated Spring Security application, which is then upgraded automatically through a simple command:

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
  -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:LATEST \
  -Drewrite.activeRecipes=org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0

timtebeek avatar Mar 22 '23 19:03 timtebeek