Migrate Spring annotations to CDI

MSAL

Replace Spring stereotype and injection annotations with CDI equivalents.

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

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. Replace Spring @Bean with CDI @Produces
  2. Replace Spring @Configuration with a CDI scope
  3. Replace annotation
  4. Replace annotation
  5. Replace annotation
  6. Replace Spring @Autowired with CDI @Inject