Upgrade Recipe wrapper with AddRepository

This commit is contained in:
aboyko
2022-11-08 12:48:48 -05:00
parent 97286246d5
commit 7594a743cf
3 changed files with 35 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ public class PrefsInitializer extends AbstractPreferenceInitializer {
"org.openrewrite.java.testing.junit5.JUnit5BestPractices",
"org.openrewrite.java.testing.junit5.JUnit4to5Migration",
"org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_6",
"org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0",
"org.springframework.sts.java.spring.boot3.UpgradeSpringBoot_3_0",
"org.rewrite.java.security.*",
"org.springframework.rewrite.test.*",
"rewrite.test.*"

View File

@@ -0,0 +1,33 @@
#
# Copyright 2022 the original author or authors.
# <p>
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# <p>
# https://www.apache.org/licenses/LICENSE-2.0
# <p>
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
########################################################################################################################
# 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
---

View File

@@ -218,7 +218,7 @@
"org.openrewrite.java.testing.junit5.JUnit5BestPractices",
"org.openrewrite.java.testing.junit5.JUnit4to5Migration",
"org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_6",
"org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0",
"org.springframework.sts.java.spring.boot3.UpgradeSpringBoot_3_0",
"org.rewrite.java.security.*",
"org.springframework.rewrite.test.*",
"rewrite.test.*"