blob: bf6c679ae18ac5ce13dce7b774266e4b7ce9dbf1 [file] [log] [blame]
import org.gradle.kotlin.dsl.resolutionStrategy
plugins {
id("com.github.ben-manes.versions")
}
tasks.dependencyUpdates {
checkConstraints = true
resolutionStrategy {
componentSelection {
all {
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview", "b", "ea")
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-+]*") }
.any { it.matches(candidate.version) }
if (rejected) {
reject("Release candidate")
}
}
}
}
}