Skip to content

Commit

Permalink
HV-1888 Revert annotation processor service file to javax package
Browse files Browse the repository at this point in the history
In versions >= 7, the annotation processor isn't working.
Tested in gradle and maven using this guide:
https://docs.jboss.org/hibernate/stable/validator/reference/en-US/html_single/?v=7.0#validator-annotation-processor

In versions prior to 7, the annotation works as intended in maven/gradle builds and rasies compilation errors when an annotation is improperly used. Gradle imports used:
    compileOnly 'org.hibernate.validator:hibernate-validator-annotation-processor:6.2.0.Final'
    annotationProcessor 'org.hibernate.validator:hibernate-validator-annotation-processor:6.2.0.Final'
    implementation 'org.hibernate.validator:hibernate-validator:6.2.0.Final'

In >=7, the annotation processor doesn't run during compilation. Gradle imports used:
    compileOnly 'org.hibernate.validator:hibernate-validator-annotation-processor:7.0.2.Final'
    annotationProcessor 'org.hibernate.validator:hibernate-validator-annotation-processor:7.0.2.Final'
    implementation 'org.hibernate.validator:hibernate-validator:7.0.2.Final'

I don't believe this is something that needs to be changed to jakarta, since javax.annotation.processing.Processor exists in the compiler, not Java EE/Jakarta EE.
  • Loading branch information
CoreyForsyth authored and gsmet committed Mar 2, 2022
1 parent a1710c4 commit f1bce1c
Showing 1 changed file with 0 additions and 0 deletions.

0 comments on commit f1bce1c

Please sign in to comment.