Skip to content

Commit

Permalink
Include springframework dependency upgrades in spring-boot migration …
Browse files Browse the repository at this point in the history
…recipes
  • Loading branch information
sambsnyd committed Mar 6, 2024
1 parent 8f1f7b9 commit 68d2a10
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 93 deletions.

This file was deleted.

4 changes: 4 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ recipeList:
- org.openrewrite.gradle.plugins.UpgradePluginVersion:
pluginIdPattern: org.springframework.boot
newVersion: 2.7.x
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework
artifactId: "*"
newVersion: 5.0.x
- org.openrewrite.java.spring.security5.UpgradeSpringSecurity_5_7
# Use recommended replacements for deprecated APIs
- org.openrewrite.java.ChangeType:
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-30.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ recipeList:
retainVersions:
- org.thymeleaf:thymeleaf-spring5
- org.thymeleaf.extras:thymeleaf-extras-springsecurity5
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework
artifactId: "*"
newVersion: 6.0.x
- org.openrewrite.maven.UpgradeParentVersion:
groupId: org.springframework.boot
artifactId: spring-boot-starter-parent
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-boot-32.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ recipeList:
artifactId: "*"
newVersion: 3.2.x
overrideManagedVersion: false
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework
artifactId: "*"
newVersion: 6.1.x
- org.openrewrite.maven.UpgradeParentVersion:
groupId: org.springframework.boot
artifactId: spring-boot-starter-parent
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/rewrite/spring-framework-50.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,7 @@ recipeList:
artifactId: "*"
newVersion: 5.0.x
overrideManagedVersion: false
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework
artifactId: "*"
newVersion: 5.0.x
4 changes: 3 additions & 1 deletion src/main/resources/META-INF/rewrite/spring-framework-51.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ displayName: Migrate to Spring Framework 5.1
description: Migrate applications to the latest Spring Framework 5.1 release.
recipeList:
- org.openrewrite.java.spring.framework.UpgradeSpringFramework_5_0
- org.openrewrite.java.spring.framework.UpgradeSpringFrameworkDependencies:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework
artifactId: "*"
newVersion: 5.1.x
- org.openrewrite.java.spring.framework.EnvironmentAcceptsProfiles
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/META-INF/rewrite/spring-framework-52.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ displayName: Migrate to Spring Framework 5.2
description: Migrate applications to the latest Spring Framework 5.2 release.
recipeList:
- org.openrewrite.java.spring.framework.UpgradeSpringFramework_5_1
- org.openrewrite.java.spring.framework.UpgradeSpringFrameworkDependencies:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework
artifactId: "*"
newVersion: 5.2.x
- org.openrewrite.java.spring.framework.MigrateUtf8MediaTypes
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/META-INF/rewrite/spring-framework-53.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ displayName: Migrate to Spring Framework 5.3
description: Migrate applications to the latest Spring Framework 5.3 release.
recipeList:
- org.openrewrite.java.spring.framework.UpgradeSpringFramework_5_2
- org.openrewrite.java.spring.framework.UpgradeSpringFrameworkDependencies:
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework
artifactId: "*"
newVersion: 5.3.x
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
groupId: org.springframework.security
Expand Down

0 comments on commit 68d2a10

Please sign in to comment.