Skip to content

Commit c1a99a8

Browse files
committed
Separate Spring Boot best practices from migration, fix description text
1 parent 45d26fd commit c1a99a8

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

src/main/resources/META-INF/rewrite/spring-boot2.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
#
1616
---
1717
type: specs.openrewrite.org/v1beta/recipe
18-
name: org.openrewrite.java.spring.Boot2JUnit4to5Migration
18+
name: org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration
1919
displayName: JUnit Jupiter migration from JUnit 4.x for Spring Boot 2.x projects
2020
description: Migrates Sping Boot 2.x projects having JUnit 4.x tests to JUnit Jupiter
2121
tags:
2222
- testing
2323
- junit
2424
- spring
25+
- spring-boot
2526
recipeList:
2627
- org.openrewrite.java.testing.junit5.JUnit4to5Migration
2728
- org.openrewrite.java.spring.boot2.OutputCaptureExtension
@@ -42,17 +43,29 @@ recipeList:
4243
scope: test
4344
onlyIfUsing:
4445
- org.springframework.boot.testsupport.runner.classpath.ModifiedClassPathExtension
45-
46+
---
47+
type: specs.openrewrite.org/v1beta/recipe
48+
name: org.openrewrite.java.spring.boot2.SpringBoot2BestPractices
49+
displayName: Spring Boot 2.x best practices
50+
description: Applies best practices to Spring Boot 2 applications.
51+
tags:
52+
- spring
53+
- spring-boot
54+
recipeList:
55+
- org.openrewrite.java.spring.NoRequestMappingAnnotation
56+
- org.openrewrite.java.spring.ImplicitWebAnnotationNames
57+
- org.openrewrite.java.spring.BeanMethodsNotPublic
4658
---
4759
type: specs.openrewrite.org/v1beta/recipe
4860
name: org.openrewrite.java.spring.boot2
49-
displayName: Spring Boot 2
61+
displayName: Spring Boot 2.x migration from Spring Boot 1.x
5062
description: Migrates Spring Boot 1.x to 2.x including best practices.
5163
tags:
5264
- testing
5365
- junit
5466
- mockito
5567
- spring
68+
- spring-boot
5669
recipeList:
5770
- org.openrewrite.java.testing.junit5.JUnit4to5Migration
5871
- org.openrewrite.java.testing.junit5.JUnit5BestPractices
@@ -86,9 +99,6 @@ recipeList:
8699
springBootVersion: 2.x
87100
javaxValidationApiVersion: 2.x
88101
- org.openrewrite.java.spring.NoAutowired
89-
- org.openrewrite.java.spring.NoRequestMappingAnnotation
90-
- org.openrewrite.java.spring.ImplicitWebAnnotationNames
91-
- org.openrewrite.java.spring.BeanMethodsNotPublic
92102
- org.openrewrite.java.spring.boot2.SpringRunnerToSpringExtension
93103
- org.openrewrite.java.spring.boot2.ConditionalOnBeanAnyNestedCondition
94104
- org.openrewrite.java.spring.boot2.RestTemplateBuilderRequestFactory
@@ -101,3 +111,4 @@ recipeList:
101111
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties.2_2
102112
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml.2_3
103113
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties.2_3
114+
- org.openrewrite.java.spring.boot2.SpringBoot2BestPractices

0 commit comments

Comments
 (0)