4

In SettingsBuild, Execution, DeploymentBuild toolsMavenImporting, there is an option to automatically download the 'Sources', 'Documentation' and 'Annotations'. I do not see a similar option for Gradle.

Is it possible to automatically download documentation for Gradle projects?

CLOVIS
  • 771
  • 8
  • 24
  • Does this answer your question? [How to download javadocs and sources for jar using Gradle 2.0?](https://stackoverflow.com/questions/28404149/how-to-download-javadocs-and-sources-for-jar-using-gradle-2-0) – ThangLeQuoc Feb 24 '22 at 07:48

1 Answers1

5

Since Intellij's gradle configuration is mostly driven from Gradle files for each project, you can do something like this:

apply plugin: 'java'
apply plugin: 'idea'

idea {
    module {
        downloadJavadoc = true
        downloadSources = true
    }
}

For more information about the idea module, check the IdeaModule Gradle page

afterburner
  • 2,552
  • 13
  • 21