Robert Elliot
09/19/2023, 9:45 AMwithoutArtifactSelectors()
but I can't find an example of how to use it. This doesn't work:
configurations.all {
resolutionStrategy {
dependencySubstitution {
substitute module('org.yaml:snakeyaml') withoutArtifactSelectors()
}
}
}
I've ended up with this, which feels hacky:
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.module.toString() == 'org.yaml:snakeyaml') {
details.artifactSelection {
it.selectArtifact(DependencyArtifact.DEFAULT_TYPE, null, null)
}
}
}
}