mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-05 00:10:09 +00:00
12 lines
344 B
Groovy
12 lines
344 B
Groovy
|
def isNonStable = { String version ->
|
||
|
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { it -> version.toUpperCase().contains(it) }
|
||
|
def regex = /^[0-9,.v-]+(-r)?$/
|
||
|
return !stableKeyword && !(version ==~ regex)
|
||
|
}
|
||
|
|
||
|
tasks.named("dependencyUpdates").configure {
|
||
|
rejectVersionIf {
|
||
|
isNonStable(it.candidate.version)
|
||
|
}
|
||
|
}
|