Replace BeforeBeanDiscovery.addAnnotatedType(AnnotatedType) with addAnnotatedType(AnnotatedType, String)

MSAL

BeforeBeanDiscovery.addAnnotatedType(AnnotatedType) is deprecated in CDI 1.1. It is replaced by BeforeBeanDiscovery.addAnnotatedType(AnnotatedType, String).

org.openrewrite.java.migrate.jakarta.UpdateAddAnnotatedTypes
mod run . --recipe=org.openrewrite.java.migrate.jakarta.UpdateAddAnnotatedTypes

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.