Can the Gradle Eclipse Plugin attach source jar files to local jar dependencies

If I have maven dependency in Gradle then the eclipse plugin will automatically download the source jar file if there is one and attach it in the generated eclipse ".classpath" file.

Is is possible to get a similar behaviour for local file depencies (that I have the source jar of)?


When using a flatDir repository, the Eclipse plugin should attach any source jars as long as they are in the same location as the dependency jar (with the same name followed by either -src or -sources).

Say you have a local jar called dependency.jar at location x/y/z . If you put the sources jar in the same location and call it dependency-sources or dependency-src , it will be attached.

Please note that this only works for flatDir repositories and not for plain file dependencies.

链接地址: http://www.djcxy.com/p/73272.html

上一篇: 序列点在c

下一篇: Gradle Eclipse插件可以将源jar文件附加到本地jar依赖项