I’ve upgraded my build script to use Gradle 4.6.
The following warning is now printed:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
--warning-mode=all, I get:
Putting annotation processors on the compile classpath has been deprecated and is scheduled to be removed in Gradle 5.0. Please add them to the processor path instead. If these processors were unintentionally leaked on the compile classpath, use the -proc:none compiler option to ignore them..
However, I don’t know what annotation processors are and I don’t use them. I suspect there’s some annotation processor in any of the JARs I depend on. So, multiple questions come into my mind:
- which annotation processors were found and in which JARs? I ran Gradle even with
--debugbut I see no further information on where these processors were found
- how can I control this, if the JARs I depend on include annotation processors? I don’t have any control on them
- why is this signalled as a problem with the build? If I depend on a JAR that includes an annotation processor, it’s not a build problem, unless the annotation processor is introduced by a Gradle plugin I’m using, but once again I can’t find any clue on which plugin may be the source of this
- what do you mean by “removed in Gradle 5.0”? My project won’t compile any more?
Honestly I’m a bit confused.
Thanks in advance for any help.