Migrate @EnableXyz annotations to Quarkus extensions
MSALRemoves Spring @EnableXyz annotations and adds the corresponding Quarkus extensions as dependencies.
org. openrewrite. quarkus. spring. EnableAnnotationsToQuarkusDependenciesmod run . --recipe= org. openrewrite. quarkus. spring. EnableAnnotationsToQuarkusDependenciesInstall 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-scheduler:x - Remove annotation
org.springframework.scheduling.annotation.EnableScheduling - Add Gradle or Maven dependency
io.quarkus:quarkus-cache:x - Remove annotation
org.springframework.cache.annotation.EnableCaching - Add Gradle or Maven dependency
io.quarkus:quarkus-spring-data-jpa:x - Remove annotation
org.springframework.data.jpa.repository.config.EnableJpaRepositories - Add Gradle or Maven dependency
io.quarkus:quarkus-spring-security:x - Remove annotation
org.springframework.security.config.annotation.web.configuration.EnableWebSecurity - Add Gradle or Maven dependency
io.quarkus:quarkus-config-yaml:x - Remove annotation
org.springframework.boot.context.properties.EnableConfigurationProperties