Slackbot
04/18/2022, 4:18 PMNiels Doucet
04/19/2022, 7:22 AMconfigurations {
configureEach {
resolutionStrategy {
eachDependency {
// Let's never leak test frameworks on our runtimeClasspath again.
if (requested.name == "groovy-all") {
throw RuntimeException("Don't ever use `groovy-all`. Use `groovy` directly and declare extra modules as needed.")
}
}
}
}
}
We do this for groovy-all
, I believe you can do the same for a group with requested.group