Skip to content
Home » Gradle download sources and javadoc in eclipse or Intellij or Idea

Gradle download sources and javadoc in eclipse or Intellij or Idea

  • by

For different workspace sources and javadoc from maven repo can be download as follows:

Eclipse

apply plugin: 'java'
apply plugin: 'eclipse'

eclipse {
    classpath {
        downloadJavadoc = true
        downloadSources = true
    }
}

For IntelliJ & Android Studio

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

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

To apply and run plugins:

gradle cleanEclipse eclipse
gradle cleanIdea idea

References

Leave a Reply

Your email address will not be published. Required fields are marked *