Skip to content

Instantly share code, notes, and snippets.

@runningcode
Created October 9, 2020 08:45
Show Gist options
  • Save runningcode/e0568938f8f1ac3c7fdf80ae9b5a5776 to your computer and use it in GitHub Desktop.
Save runningcode/e0568938f8f1ac3c7fdf80ae9b5a5776 to your computer and use it in GitHub Desktop.
Resolve all dependencies
task resolveAllDependencies {
dependsOn {
def resolvableConfigurations = project.configurations.grep { it.canBeResolved }
resolvableConfigurations.collect { config ->
config.getIncoming().artifactView({ view ->
view.componentFilter({ it instanceof ModuleComponentIdentifier })
}).getFiles();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment