I’d like a way to ensure that release builds do not depend on snapshots. I’m imagining something like this:
configurations.all {
resolutionStrategy {
//simple way if it was built into gradle
disableSnapshots()
// alternate way
eachDependency { DependencyResolveDetails details ->
if (details.isSnapshot) {
//fail the build
}
}
}
}