Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple plugin for build.gradle to instruct Jetbrains IDEA-based IDEs (IntelliJ, Android Studio) to download sources of the dependencies. More settings can be found here: http://gradle.org/docs/current/dsl/org.gradle.plugins.ide.idea.model.IdeaModule.html
// your code
apply from: "build-plugins/idea-gradle-sources.gradle"
apply plugin: 'idea'
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
@falkorichter
Copy link

falkorichter commented Jan 13, 2015

how about

apply from:'https://gist.githubusercontent.com/stefanhoth/37f86c8e41d648cbd2c8/raw/49ca13d028885cae89f7da949f11069365aefeec/idea-gradle-sources.gradle'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment