How to download javadocs and sources for jar using Gradle 2.0?

后端 未结 4 1532
星月不相逢
星月不相逢 2020-11-30 01:46

I am using Gradle 2.0. What should I write in build.gradle so that the javadocs and sources are also downloaded along with the jars?

4条回答
  •  一整个雨季
    2020-11-30 02:26

    You can write an ArtifactResolutionQuery that copies all SourcesArtifact and JavadocArtifact for each of your dependencies

    See here for an example and here for the gradle source code which does it for the Eclipse/Intellij plugins

提交回复
热议问题