Skip to content

Commit

Permalink
Ensure spring-main-banner-mode changes from true or false to off or c…
Browse files Browse the repository at this point in the history
…onsole
  • Loading branch information
aegershman committed Nov 10, 2021
1 parent 24e110b commit fd149a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,20 @@
# limitations under the License.
#
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot2.SpringBootPropertiesManual_2_0
displayName: Migrate additional Spring Boot properties to 2.0
description: Migrate properties found in `application.properties` and `application.yml` which are not generated automatically from Spring Boot's `additional-spring-configuration-metadata.json` file.
recipeList:
- org.openrewrite.properties.ChangePropertyValue:
propertyKey: spring.main.banner-mode
oldValue: true
newValue: console
- org.openrewrite.properties.ChangePropertyValue:
propertyKey: spring.main.banner-mode
oldValue: false
newValue: "off"
---
# Manual additions to Spring Boot properties not otherwise picked up by the autogenerated set.
# See https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.5-Configuration-Changelog#deprecated-in-250
type: specs.openrewrite.org/v1beta/recipe
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/rewrite/spring-boot2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ recipeList:

# Update properties
- org.openrewrite.java.spring.boot2.SpringBootProperties_2_0
- org.openrewrite.java.spring.boot2.SpringBootPropertiesManual_2_0

---
type: specs.openrewrite.org/v1beta/recipe
Expand Down

0 comments on commit fd149a1

Please sign in to comment.