Skip to content

Commit 0575982

Browse files
committed
Fix spring boot recipe naming
1 parent c1a99a8 commit 0575982

File tree

3 files changed

+15
-23
lines changed

3 files changed

+15
-23
lines changed

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

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
#
1616
---
1717
type: specs.openrewrite.org/v1beta/recipe
18-
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties.2_0
19-
displayName: Spring Boot configuration properties 2.0
18+
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties_2_0
2019
recipeList:
2120
- org.openrewrite.properties.ChangePropertyKey:
2221
oldPropertyKey: spring.main.show-banner
@@ -526,7 +525,6 @@ recipeList:
526525
---
527526
type: specs.openrewrite.org/v1beta/recipe
528527
name: org.openrewrite.spring.boot.config.SpringBootConfigurationYaml.2_0
529-
displayName: Spring Boot configuration yaml 2.0
530528
recipeList:
531529
- org.openrewrite.yaml.ChangePropertyKey:
532530
oldPropertyKey: spring.main.show-banner
@@ -1035,8 +1033,7 @@ recipeList:
10351033

10361034
---
10371035
type: specs.openrewrite.org/v1beta/recipe
1038-
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties.2_1
1039-
displayName: Spring Boot configuration properties 2.1
1036+
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties_2_1
10401037
recipeList:
10411038
- org.openrewrite.properties.ChangePropertyKey:
10421039
oldPropertyKey: management.metrics.binders.files.enabled
@@ -1114,7 +1111,6 @@ recipeList:
11141111
---
11151112
type: specs.openrewrite.org/v1beta/recipe
11161113
name: org.openrewrite.spring.boot.config.SpringBootConfigurationYaml.2_1
1117-
displayName: Spring Boot configuration yaml 2.1
11181114
recipeList:
11191115
- org.openrewrite.yaml.ChangePropertyKey:
11201116
oldPropertyKey: management.metrics.binders.files.enabled
@@ -1191,8 +1187,7 @@ recipeList:
11911187

11921188
---
11931189
type: specs.openrewrite.org/v1beta/recipe
1194-
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties.2_2
1195-
displayName: Spring Boot configuration properties 2.2
1190+
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties_2_2
11961191
recipeList:
11971192
- org.openrewrite.properties.ChangePropertyKey:
11981193
oldPropertyKey: logging.file
@@ -1243,7 +1238,6 @@ recipeList:
12431238
---
12441239
type: specs.openrewrite.org/v1beta/recipe
12451240
name: org.openrewrite.spring.boot.config.SpringBootConfigurationYaml.2_2
1246-
displayName: Spring Boot configuration yaml 2.2
12471241
recipeList:
12481242
- org.openrewrite.yaml.ChangePropertyKey:
12491243
oldPropertyKey: logging.file
@@ -1293,8 +1287,7 @@ recipeList:
12931287

12941288
---
12951289
type: specs.openrewrite.org/v1beta/recipe
1296-
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties.2_3
1297-
displayName: Spring Boot configuration properties 2.3
1290+
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties_2_3
12981291
recipeList:
12991292
- org.openrewrite.properties.ChangePropertyKey:
13001293
oldPropertyKey: server.jetty.max-http-post-size
@@ -1363,7 +1356,6 @@ recipeList:
13631356
---
13641357
type: specs.openrewrite.org/v1beta/recipe
13651358
name: org.openrewrite.spring.boot.config.SpringBootConfigurationYaml.2_3
1366-
displayName: Spring Boot configuration yaml 2.3
13671359
recipeList:
13681360
- org.openrewrite.yaml.ChangePropertyKey:
13691361
oldPropertyKey: server.jetty.max-http-post-size

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
type: specs.openrewrite.org/v1beta/recipe
1818
name: org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration
1919
displayName: JUnit Jupiter migration from JUnit 4.x for Spring Boot 2.x projects
20-
description: Migrates Sping Boot 2.x projects having JUnit 4.x tests to JUnit Jupiter
20+
description: Migrates Spring Boot 2.x projects having JUnit 4.x tests to JUnit Jupiter
2121
tags:
2222
- testing
2323
- junit
@@ -57,7 +57,7 @@ recipeList:
5757
- org.openrewrite.java.spring.BeanMethodsNotPublic
5858
---
5959
type: specs.openrewrite.org/v1beta/recipe
60-
name: org.openrewrite.java.spring.boot2
60+
name: org.openrewrite.java.spring.boot2.SpringBoot1To2Migration
6161
displayName: Spring Boot 2.x migration from Spring Boot 1.x
6262
description: Migrates Spring Boot 1.x to 2.x including best practices.
6363
tags:
@@ -103,12 +103,12 @@ recipeList:
103103
- org.openrewrite.java.spring.boot2.ConditionalOnBeanAnyNestedCondition
104104
- org.openrewrite.java.spring.boot2.RestTemplateBuilderRequestFactory
105105
- org.openrewrite.java.spring.boot2.ReplaceDeprecatedEnvironmentTestUtils
106-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml.2_0
107-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties.2_0
108-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml.2_1
109-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties.2_1
110-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml.2_2
111-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties.2_2
112-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml.2_3
113-
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties.2_3
106+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml_2_0
107+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties_2_0
108+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml_2_1
109+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties_2_1
110+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml_2_2
111+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties_2_2
112+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationYaml_2_3
113+
- org.openrewrite.java.spring.boot2.config.SpringBootConfigurationProperties_2_3
114114
- org.openrewrite.java.spring.boot2.SpringBoot2BestPractices

src/test/kotlin/GeneratePropertiesMigratorConfiguration.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ object GeneratePropertiesMigratorConfiguration {
8585
8686
---
8787
type: specs.openrewrite.org/v1beta/recipe
88-
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties.$majorMinor
88+
name: org.openrewrite.spring.boot.config.SpringBootConfigurationProperties_$majorMinor
8989
recipeList:
9090
""".trimIndent())
9191

0 commit comments

Comments
 (0)