Add version and bean-discovery-mode to beans.xml files
MSALAlters beans.xml files with a missing version attribute to include this attribute. A file that declares no bean-discovery-mode and has no version or one below 4.0 also gets bean-discovery-mode="all", so it remains an explicit bean archive under the CDI 4.0 default of annotated; a declared mode is kept.
org. openrewrite. java. migrate. BeanDiscoverymod run . --recipe= org. openrewrite. java. migrate. BeanDiscoveryInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.