Skip to content

Commit 98cf2d4

Browse files
ghustatimtebeek
andauthored
Migration Recipe for Spring Security 6.4 (#798)
* Migration Recipe for Spring Security 6.4 Refs: #793 * Add `UpgradeSpringSecurity_6_4` to `UpgradeSpringBoot_3_4` * Only include Spring Security recipes with Spring Boot upgrades To avoid running those twice --------- Co-authored-by: Tim te Beek <[email protected]>
1 parent f844aaa commit 98cf2d4

File tree

6 files changed

+40
-3
lines changed

6 files changed

+40
-3
lines changed

src/main/resources/META-INF/rewrite/spring-boot-33.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ tags:
2828
- boot
2929
recipeList:
3030
- org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2
31+
- org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_3
3132
- org.openrewrite.java.spring.boot3.SpringBootProperties_3_3
3233
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
3334
groupId: org.springframework.boot

src/main/resources/META-INF/rewrite/spring-boot-34.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ recipeList:
2929
- org.openrewrite.java.spring.framework.UpgradeSpringFramework_6_2
3030
- org.openrewrite.java.spring.cloud2024.UpgradeSpringCloud_2024
3131
- org.openrewrite.java.spring.data.UpgradeSpringData_3_4
32+
- org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_4
3233
- org.openrewrite.java.spring.boot3.SpringBootProperties_3_4
3334
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
3435
groupId: org.springframework.boot

src/main/resources/META-INF/rewrite/spring-security-61.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ tags:
2626
- spring
2727
- security
2828
recipeList:
29-
- org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_0
3029
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
3130
groupId: org.springframework.security
3231
artifactId: "*"

src/main/resources/META-INF/rewrite/spring-security-62.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ tags:
2626
- spring
2727
- security
2828
recipeList:
29-
- org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_1
3029
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
3130
groupId: org.springframework.security
3231
artifactId: "*"

src/main/resources/META-INF/rewrite/spring-security-63.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ tags:
2626
- spring
2727
- security
2828
recipeList:
29-
- org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_2
3029
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
3130
groupId: org.springframework.security
3231
artifactId: "*"
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#
2+
# Copyright 2025 the original author or authors.
3+
# <p>
4+
# Licensed under the Moderne Source Available License (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
# <p>
8+
# https://docs.moderne.io/licensing/moderne-source-available-license
9+
# <p>
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
---
18+
type: specs.openrewrite.org/v1beta/recipe
19+
name: org.openrewrite.java.spring.security6.UpgradeSpringSecurity_6_4
20+
displayName: Migrate to Spring Security 6.4
21+
description: >-
22+
Migrate applications to the latest Spring Security 6.4 release. This recipe will modify an
23+
application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have
24+
changes between versions.
25+
tags:
26+
- spring
27+
- security
28+
recipeList:
29+
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
30+
groupId: org.springframework.security
31+
artifactId: "*"
32+
newVersion: 6.4.x
33+
overrideManagedVersion: false
34+
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
35+
groupId: org.springframework.security
36+
artifactId: spring-security-oauth2-authorization-server
37+
newVersion: 1.4.x
38+
overrideManagedVersion: false

0 commit comments

Comments
 (0)