Details
-
Enhancement
-
Resolution: Done
-
Minor
-
spring-boot-starter-3.7.0.Final, spring-boot-starter-4.7.0.Final
-
None
-
Undefined
Description
While using resteasy-spring-boot-starter, I could see the starter brings in two artifacts containing classes for the validation constraints with same package structure. For example : javax.validation.constraints.NotEmpty.
The two artifacts are as below :
I dont think we need two artifacts with duplicate classes to be present.
Based on reading [here|https://developer.jboss.org/en/resteasy/blog/2019/10/30/resteasy-440final-moving-to-jakarta-artifacts-and-much-more,] I understood that there is recommendation to replace all Java EE API to Jakarta ones.
Based on this also, the existence of javax.validation-validation-api is duplicate and can be removed.
In addition, I also see the use of other Java EE: javax.servlet:javax.servlet-api & javax.annotation:javax.annotation-api. Not sure if this still needed to be here but to be reviewed.