Created
October 30, 2020 11:23
-
-
Save BelooS/8cf5928af13ffc63cd188663763e61e5 to your computer and use it in GitHub Desktop.
resolveDependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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