Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe to migrate properties configuration to yaml configuration (and vice versa) #509

Open
murdos opened this issue Mar 16, 2024 · 0 comments
Labels
recipe Recipe requested

Comments

@murdos
Copy link

murdos commented Mar 16, 2024

What problem are you trying to solve?

Migration of an existing application that uses properties for Spring configuration to use of YAML for Spring configuration.

What precondition(s) should be checked before applying this recipe?

Existence of application*.properties files.

Describe the situation before applying the recipe

src/main/resources/config/application.properties

server.port=${PORT:8080}
logging.level.org.atmosphere = warn
spring.mustache.check-template-location = false

Describe the situation after applying the recipe

src/main/resources/config/application.yml

server:
  port: ${PORT:8080}
logging:
  level:
    org.atmosphere: warn
spring:
  mustache:
    check-template-location: false

Have you considered any alternatives or workarounds?

Any additional context

Are you interested in contributing this recipe to OpenRewrite?

@timtebeek timtebeek added the recipe Recipe requested label Mar 17, 2024
@murdos murdos changed the title Recipe for migration properties configuration to yaml configuration (and vice versa) Recipe to migrate properties configuration to yaml configuration (and vice versa) Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Recipe requested
Projects
Status: Recipes Wanted
Development

No branches or pull requests

2 participants