Migrate @EnableXyz annotations to Quarkus extensions

MSAL

Removes Spring @EnableXyz annotations and adds the corresponding Quarkus extensions as dependencies.

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

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-scheduler:x
  2. Remove annotation org.springframework.scheduling.annotation.EnableScheduling
  3. Add Gradle or Maven dependency io.quarkus:quarkus-cache:x
  4. Remove annotation org.springframework.cache.annotation.EnableCaching
  5. Add Gradle or Maven dependency io.quarkus:quarkus-spring-data-jpa:x
  6. Remove annotation org.springframework.data.jpa.repository.config.EnableJpaRepositories
  7. Add Gradle or Maven dependency io.quarkus:quarkus-spring-security:x
  8. Remove annotation org.springframework.security.config.annotation.web.configuration.EnableWebSecurity
  9. Add Gradle or Maven dependency io.quarkus:quarkus-config-yaml:x
  10. Remove annotation org.springframework.boot.context.properties.EnableConfigurationProperties