Skip to content

Instantly share code, notes, and snippets.

@BelooS
Created October 30, 2020 11:23
Show Gist options
  • Save BelooS/8cf5928af13ffc63cd188663763e61e5 to your computer and use it in GitHub Desktop.
Save BelooS/8cf5928af13ffc63cd188663763e61e5 to your computer and use it in GitHub Desktop.
resolveDependencies
task resolveDependencies {
description "Resolves all projects dependencies from the repository."
group "Build Server"
doLast {
rootProject.allprojects { project ->
project.buildscript.configurations.forEach { configuration ->
if (configuration.canBeResolved) {
configuration.resolve()
}
}
project.configurations.forEach { configuration ->
if (configuration.canBeResolved) {
try {
configuration.resolve()
} catch (ignored) {
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment