Debian Codegraph @

gradle/plugins/common/src/main/kotlin/junitbuild.dependency-update-check.gradle.kts

raw
1 plugins {
2 id("com.github.ben-manes.versions")
3 }
4
5 tasks.dependencyUpdates {
6 checkConstraints = true
7 resolutionStrategy {
8 componentSelection {
9 all {
10 val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview", "b", "ea")
11 .map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-+]*") }
12 .any { it.matches(candidate.version) }
13 if (rejected) {
14 reject("Release candidate")
15 }
16 }
17 }
18 }
19 }