-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle 5 does not pick annotation processor from project dependency #7941
Comments
Could you share the build you're seeing this in? @marcphilipp @oehme anything obvious to check? |
Nothing comes to mind, this should work. We'll need a reproducible sample of the problem. |
@big-guy, @oehme, @marcphilipp, I updated the description with the link to the sample that demonstrates the issue. Is there anything else needed in addition to the sample and the build scans? |
Thank you for looking into the issue, one annotation processor was not declared: com.google.auto.service. Pushed correction out. |
@ishaigor can tell more how you fixed your issue? I have the same and upgrading auto-service didn't help. |
I have multiple annotations in my project from lombok, slf4j, spring etc. And I created a new annotation and a processor for it. When I register this processor, all the other annotations start throwing compile errors. Is there anything specific I have to do to add to the existing list of processors. |
@swathistudyblue You need to add the other processors as dependencies to the |
Upgrading auto-service didn't help for me as well. Fighting build system instead of doing useful work :( |
Have the same issue, @oradkovsky have you managed to fix it. PS. All files are generated and placed in the |
My project has subprojects that are generating different artifacts. Among those, the subproject of interest are
The build.gradle for consumer sub-project looks like
Expected Behavior
I expect to find the generated sources under consumer/build/generated/source/apt/main
Current Behavior
I am not getting the files generated under consumer/build/generated/source/apt/main with the Gradle 5.0. I do get the annotation processor to work with the same build script and Gradle 4.10.2.
Context
I am trying to switch to Gradle 5 from Gradle 4.10.2 where the generation works. If I cannot get the annotation processor to work, I cannot migrate.
Steps to Reproduce (for bugs)
Clone https://github.com/ishaigor/annotation-processor-sample
Follow the steps in README
Your Environment
The text was updated successfully, but these errors were encountered: