Migrate @ConfigurationProperties to Quarkus @ConfigMapping

MSAL

Migrates Spring Boot @ConfigurationProperties to Quarkus @ConfigMapping. This recipe converts configuration property classes to the native Quarkus pattern.

org.openrewrite.quarkus.spring.MigrateConfigurationProperties
mod run . --recipe=org.openrewrite.quarkus.spring.MigrateConfigurationProperties

Install 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.

  1. Add Gradle or Maven dependency io.quarkus:quarkus-config-yaml:x
  2. Convert @ConfigurationProperties class to @ConfigMapping interface
  3. Remove annotation org.springframework.boot.context.properties.EnableConfigurationProperties
  4. Remove annotation org.springframework.boot.context.properties.ConstructorBinding