Skip to content

Instantly share code, notes, and snippets.

@jefftougas
Forked from nerro/helper.gradle
Created August 15, 2018 23:16
Show Gist options
  • Save jefftougas/558ae2fbc8305f030188b9d56e40d9c5 to your computer and use it in GitHub Desktop.
Save jefftougas/558ae2fbc8305f030188b9d56e40d9c5 to your computer and use it in GitHub Desktop.
Gradle: task 'resolveDependencies' for CI
task resolveDependencies {
setDescription "Resolves all projects dependencies from the repository."
setGroup "Build Server"
doLast {
rootProject.allprojects { project ->
project.buildscript.configurations.forEach { configuration ->
if (configuration.canBeResolved) {
configuration.resolve()
}
}
project.configurations.forEach { configuration ->
if (configuration.canBeResolved) {
configuration.resolve()
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment