Migrate @ConfigurationProperties to Quarkus @ConfigMapping
MSALMigrates Spring Boot @ConfigurationProperties to Quarkus @ConfigMapping. This recipe converts configuration property classes to the native Quarkus pattern.
org. openrewrite. quarkus. spring. MigrateConfigurationPropertiesmod run . --recipe= org. openrewrite. quarkus. spring. MigrateConfigurationPropertiesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.
- Add Gradle or Maven dependency
io.quarkus:quarkus-config-yaml:x - Convert @ConfigurationProperties class to @ConfigMapping interface
- Remove annotation
org.springframework.boot.context.properties.EnableConfigurationProperties - Remove annotation
org.springframework.boot.context.properties.ConstructorBinding