For example, in plugin builds I would like to be able to do:
allprojects {
configurations.all {
resolutionStrategy {
eachDependency { // skip Groovy artifacts as they are provided by gradleApi()
if (requested.group == 'org.codehaus.groovy') useTarget null
}
}
}
}
Right now we have a choice to replace the Groovy deps with another irrelevant dependency, or to hunt down the transitives and exclude from each external dependency.