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

后端 未结 4 1531
星月不相逢
星月不相逢 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:12

    In addition to previous question, here is Gradle Kotlin DSL version:

    plugins {
        id("idea")
    }
    
    idea {
        module {
            isDownloadJavadoc = true
            isDownloadSources = true
        }
    }
    

提交回复
热议问题