Skip to content

Instantly share code, notes, and snippets.

@skokhanovskiy
Created September 15, 2020 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skokhanovskiy/7d9c55115cafe1ccd29218eb80a0ca8e to your computer and use it in GitHub Desktop.
Save skokhanovskiy/7d9c55115cafe1ccd29218eb80a0ca8e to your computer and use it in GitHub Desktop.
Task to download all dependencies for all targets in Gradle
// Task to download all dependencies for all targets
task downloadDependencies {
doLast {
rootProject.allprojects { project ->
Set<Configuration> configurations = project.buildscript.configurations + project.configurations
configurations.findAll { c -> c.canBeResolved }
.forEach { c -> c.resolve() }
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment