Skip to content

Instantly share code, notes, and snippets.

@stefanhoth
Last active March 3, 2017 12:03
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save stefanhoth/37f86c8e41d648cbd2c8 to your computer and use it in GitHub Desktop.
Save stefanhoth/37f86c8e41d648cbd2c8 to your computer and use it in GitHub Desktop.
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

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