-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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 3.3 -> 3.4 Annotation Processor not called in JavaCompile Task #1471
Comments
Could you please push a reproducible example to GitHub? That would make it easier for us to fix the problem. |
I think I know what the issues is though: Your annotation processor is missing the processor configuration file ( Apparently javac allows you to use a processor with the explicit As a workaround, add a processor configuration file for your processor. That way you don't have to pass |
Thanks for your fast reply. Your solution proposal worked for us. We added META-INF/services/javax.annotation.processing.Processor and removed the "-processor" flag. |
…on is passed This commit fixes #1471 by making sure that if `-processor` is passed to the compiler options, then we use the right classpath: compile classpath is no explicit `-processorpath` is used, and processorpath otherwise.
@oehme can you take a quick look at the fix above and close this issue if you are happy with it? |
We can return the compile classpath directly.
LGTM |
If I use the JavaCompile Task with compilerArgs Options, then the Annotation Processor "SQLProcessor" is not called anymore. With gradle 3.0,3.1,3.2, 3.3 it is working. With gradle 3.4 it seems to be broken.
The Java source files and the annotation processor are in the same project.
Expected Behavior
Same result as with gradle 3.3.
Current Behavior
Annotation Processor is not called anymore.
Context
Steps to Reproduce (for bugs)
This task does not call the Annotation Processor anymore.
Your Environment
Java 7, Gradle 3.4
The text was updated successfully, but these errors were encountered: