mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-11-13 23:42:56 +00:00
add versions plugin
This commit is contained in:
1 parent
2ddfffa6a9
commit
bd2b5ae5fc
3 files changed
+20
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user