Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2827

Cleanup javax.validation:validation-api dependency from resteasy-spring-boot-starter

XMLWordPrintable

    • Undefined

      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 : 

      1. javax.validation:validation-api  here 
      2. jakarta.validation:jakarta.validation-api here

      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. 

       

       

              Unassigned Unassigned
              sharathkuncham Sharath Kuncham (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: