build-logic: configure VCU to not purge library declarations

This commit is contained in:
Harsh Shandilya 2022-04-27 00:56:10 +05:30
parent 058d485257
commit f74d3ce1b4
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -5,6 +5,13 @@ plugins {
id("nl.littlerobots.version-catalog-update")
}
versionCatalogUpdate {
keep {
// This clears out build-logic specific dependencies
keepUnusedLibraries.set(true)
}
}
fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()