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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Does bloop support annotation processing for a pure Gradle Java project? #2007
Comments
Hey @jdneo thanks for the question! It may just be the gradle plugin doesn't indeed correctly export the generated sources directory, meaning that Bloop doesn't know about them. I tried to reproduce this with the example repo you have, but I actually can't get the repo to build. Do you by chance have a more minimal reproduction that I could try this with? |
@ckipp01 Gradle version being used is 6.2 so you have to use JDK 13 or lower to build with I can get this to build with Gradle on the command line using I can also get it to compile under Bloop with the warning The javac options look correct as the generated sources are added using...
I can't compile under Metals though. The error is The plugin seems to be setup correctly with I've tried this with the https://github.com/immutables/immutables annotation processor instead and I get the same issue. So there seems to be some clash between annotation processors and the semanticdb plugin. I don't really know this area well enough to know if something is missing from the javac options/classpath or whether there is actually an issue with the plugin. Do annotation processors work in SBT/Mill with Metals+Bloop+Java? |
As @Arthurm1 suggested, you can either update the gradle version in the |
Hi team 馃憢,
I was recently aware of this build server and was playing around with it.
I tested it toward this project: https://github.com/mapstruct/mapstruct-examples/tree/main/mapstruct-on-gradle.
It's a Gradle project with pure Java codes.
The Bloop server works quite well, but it seems that the server won't include the generated folder
build/generated/sources/annotationProcessor
when dealing with the build target sources request. Is there anything I missed?Thanks.
The text was updated successfully, but these errors were encountered: