mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
28 lines
711 B
Groovy
28 lines
711 B
Groovy
versionCatalogUpdate {
|
|
sortByKey = true
|
|
versionCatalogs {
|
|
special {
|
|
keep {
|
|
keepUnusedVersions = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
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 {
|
|
resolutionStrategy {
|
|
componentSelection {
|
|
all {
|
|
if (isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)) {
|
|
reject('Release candidate')
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |