29 lines
641 B
Groovy
29 lines
641 B
Groovy
plugins {
|
|
id "com.github.ben-manes.versions"
|
|
id "nl.littlerobots.version-catalog-update"
|
|
}
|
|
|
|
dependencyUpdates {
|
|
revision = "release"
|
|
gradleReleaseChannel = "current"
|
|
}
|
|
|
|
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)
|
|
}
|
|
}
|
|
|
|
tasks.named("versionCatalogUpdate").configure {
|
|
group 'version'
|
|
}
|
|
|
|
tasks.named("dependencyUpdates").configure {
|
|
group 'version'
|
|
} |