Hey, I have a strange warning that I don’t underst...
# community-support
m
> Hey, I have a strange warning that I don’t understand. I have a Java project and one of its subprojects also uses groovy plugin. I see the following warning: > >Task capabilitiescompileGroovy > > warning: Implicitly compiled files were not subject to annotation processing. > Use -implicit to specify a policy for implicit compilation. > 1 warning What should I do to fix this?
v
Seems you have a combination of enabled annotation processing and source files found on the class path which are computer implicitly because you use them somewhere, which is when
javac
emits this warning. See the documentation of
javac
for more in-depth information about it. What to do is not so much a Gradle question, and it is hard to recommend. You could stop using annotation processing if appropriate, you could stop having source files on the compile classpath if appropriate, you could configure the
-implicit
option to your needs, ... Heavily depends on the concrete situation.
👍 1