Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-validator
Commit: dc9e3e07e736222879ba447c2552ce17ffda7469
https://github.com/hibernate/hibernate-validator/commit/dc9e3e07e73622287...
Author: Corey Forsyth <corey.j.forsyth(a)gmail.com>
Date: 2022-03-02 (Wed, 02 Mar 2022)
Changed paths:
R
annotation-processor/src/main/resources/META-INF/services/jakarta.annotation.processing.Processor
A
annotation-processor/src/main/resources/META-INF/services/javax.annotation.processing.Processor
Log Message:
-----------
HV-1888 Revert annotation processor service file to javax package
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_si...
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.