openrewrite / rewrite-migrate-java

OpenRewrite recipes for migrating to newer versions of Java.
Apache License 2.0
92 stars 65 forks source link

Jakarta: EE10 Beans XML Upgade #369

Closed melloware closed 7 months ago

melloware commented 7 months ago

i know you currently have a Beans XML converter but I wasn't sure it was complete enough.

EE8 (Beans 2.0):

<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_2_0.xsd"
    version="2.0"
    bean-discovery-mode="all" >

EE10 (wanted Beans 3.0):

<beans
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="https://jakarta.ee/xml/ns/jakartaee"
        xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd"
        version="3.0"
        bean-discovery-mode="all"
>
timtebeek commented 7 months ago

Similar to https://github.com/openrewrite/rewrite-migrate-java/issues/370#issuecomment-1848708720 I think we should be able to cover these quite easily with existing recipe building blocks.

melloware commented 7 months ago

I will take care of this one too