You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I added Lombok dependency to my build.gradle file and lombok.config file I cannot compile my project with error cannot access XmlRootElement. After investigation I find out that transient dependency provided by third party library javax.xml is absent in my dependency tree. I was trying to built project through, gradlew file, internal gradle of IntelijIdea and installed gradle on my pc, also invalidate cache, reinstall IDE, redownload project from remote repository. Also changing Lombok version from 1.18.28 to 1.16.20 didn't help. When I remove all new deps and files everything works fine.
To Reproduce
Stacktrace of gradle build:
> Task :compileJava FAILED
error: cannot access XmlRootElement
class file for javax.xml.bind.annotation.XmlRootElement not found
Lombok does not generate code with this annotation. Why do you think this is a lombok problem and not one related to the other dependencies or your project code?
The compiler should print a location where this annotation is used, that should help you to find the root cause.
Describe the bug
When I added Lombok dependency to my
build.gradle
file andlombok.config
file I cannot compile my project with errorcannot access XmlRootElement
. After investigation I find out that transient dependency provided by third party libraryjavax.xml
is absent in my dependency tree. I was trying to built project through, gradlew file, internal gradle of IntelijIdea and installed gradle on my pc, also invalidate cache, reinstall IDE, redownload project from remote repository. Also changing Lombok version from 1.18.28 to 1.16.20 didn't help. When I remove all new deps and files everything works fine.To Reproduce
Stacktrace of gradle build:
lombok.config:
build.gradle:
Expected behavior
Build without any errors
Version info (please complete the following information):
Lombok
- 1.18.28Gradle
- 8.2JDK
- OpenJDK 17.07MacOS
- 13.4IntelijIDEA
- 2023.1.3 (Ultimate Edition)The text was updated successfully, but these errors were encountered: