Adopt Rewrite Boot 3 upgrade
This commit is contained in:
@@ -55,7 +55,7 @@ public class PrefsInitializer extends AbstractPreferenceInitializer {
|
||||
"org.openrewrite.java.testing.junit5.JUnit4to5Migration",
|
||||
"org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_6",
|
||||
"org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7",
|
||||
"org.springframework.sts.java.spring.boot3.UpgradeSpringBoot_3_0",
|
||||
"org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0",
|
||||
"org.rewrite.java.security.*",
|
||||
"org.springframework.rewrite.test.*",
|
||||
"rewrite.test.*"
|
||||
|
||||
@@ -16,18 +16,18 @@
|
||||
---
|
||||
########################################################################################################################
|
||||
# SpringBoot 3_0
|
||||
type: specs.openrewrite.org/v1beta/recipe
|
||||
name: org.springframework.sts.java.spring.boot3.UpgradeSpringBoot_3_0
|
||||
displayName: Upgrade to Spring Boot 3.0 from 2.7
|
||||
description: 'Upgrade to Spring Boot 3.0 from prior 2.x version.'
|
||||
recipeList:
|
||||
- org.openrewrite.maven.AddRepository:
|
||||
id: spring-snapshots
|
||||
url: https://repo.spring.io/snapshot
|
||||
snapshotsEnabled: true
|
||||
- org.openrewrite.maven.AddRepository:
|
||||
id: spring-milestones
|
||||
url: https://repo.spring.io/milestone
|
||||
snapshotsEnabled: false
|
||||
- org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0
|
||||
---
|
||||
#type: specs.openrewrite.org/v1beta/recipe
|
||||
#name: org.springframework.sts.java.spring.boot3.UpgradeSpringBoot_3_0
|
||||
#displayName: Upgrade to Spring Boot 3.0 from 2.7
|
||||
#description: 'Upgrade to Spring Boot 3.0 from prior 2.x version.'
|
||||
#recipeList:
|
||||
# - org.openrewrite.maven.AddRepository:
|
||||
# id: spring-snapshots
|
||||
# url: https://repo.spring.io/snapshot
|
||||
# snapshotsEnabled: true
|
||||
# - org.openrewrite.maven.AddRepository:
|
||||
# id: spring-milestones
|
||||
# url: https://repo.spring.io/milestone
|
||||
# snapshotsEnabled: false
|
||||
# - org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0
|
||||
#---
|
||||
|
||||
@@ -43,7 +43,7 @@ public class SpringBootUpgrade {
|
||||
"2.5", "org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_5",
|
||||
"2.6", "org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_6",
|
||||
"2.7", "org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7",
|
||||
"3.0", "org.springframework.sts.java.spring.boot3.UpgradeSpringBoot_3_0"
|
||||
"3.0", "org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0"
|
||||
);
|
||||
|
||||
private RewriteRecipeRepository recipeRepo;
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
"org.openrewrite.java.testing.junit5.JUnit4to5Migration",
|
||||
"org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_6",
|
||||
"org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7",
|
||||
"org.springframework.sts.java.spring.boot3.UpgradeSpringBoot_3_0",
|
||||
"org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0",
|
||||
"org.rewrite.java.security.*",
|
||||
"org.springframework.rewrite.test.*",
|
||||
"rewrite.test.*"
|
||||
|
||||
Reference in New Issue
Block a user