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