Incorporate jakarta.* maven artifacts instead of javax.* artifacts
See original GitHub issueCurrently, we have listed dependencies against the javax.* artifacts in Maven for our Java EE 8 dependencies. Now that the jakarta.* artifacts are in Maven in support of Jakarta EE 8, should we change our dependencies? If so, when?
To be clear, this is for the following dependencies: (We would only do this for MicroProfile 2.x since only Java EE 8 contents were transferred to Eclipse.)
- CDI 2.0 -> 2.0.1
- JAX-RS 2.1 -> 2.1.4
- JSON-P 1.1 -> 1.1.5
- JSON-B 1.0 -> 1.0.1
- Common Annotations 1.3 -> 1.3.4
The content and functionality of these jakarta.* dependencies have to be the same as their corresponding javax.* parts (this is required to allow for Java EE 8 compliance in Eclipse). The java package names are not changing. This is just for the maven coordinates in the pom.xml files.
Current:
<dependency>
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<version>2.0</version>
</dependency>
Proposed:
<dependency>
<groupId>jakarta.enterprise</groupId>
<artifactId>javax.enterprise.cdi-api</artifactId>
<version>2.0.1</version>
</dependency>
When we make this change, it should get applied to the Platform pom.xml as well as the individual Component pom.xml files.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
I think maybe either wait for Jakarta EE 8 spec to have a release, or Jakarta EE 9
Agree, @kenfinnigan. The more I thought about this, the less that I think we have work to do… Our MicroProfile implementations could still eventually claim Jakarta EE compliance, even if our dependencies are still referencing the original Java EE artifacts. So, maybe until we want to claim support for Jakarta EE 9, maybe there’s nothing to do???
FYI, eventually there will be a “Jakarta EE 8”. The Jakarta EE Steering and Spec Committees are currently working through that definition. We need to define the TCK process, the branding process, the Spec process, etc. But, once we get all of that in place, Jakarta EE 8 will be “a thing”.