But Eclipse will not use it. Eclipse required to use it as an attribute property “annotationpath” in the .classpath file. Also it will be nice if the build system does not need to download it. It is only required for Eclipse. Any ides how can do this?
Please state what you’re trying to achieve in the eclipse classpath xml (ie current state and desired state). I (and likely the other users on this list) am not aware of what changes are needed to the eclipse classpath xml to support null annotations
What is needed?
The annotationpath property of an classpath container must set to a jar file or folder with the needed files. This is like the source path or java doc path.
The above hack has the problems:
only one file for annotationpath is possible
the .classpath file contains a local path which is bad with a repository
Ideally the annotationpath property will be hide in the Gradle dependency container. See the image: