mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 00:07:05 +05:30
gradle: do not attempt to filter versions
This commit is contained in:
parent
8d7a2df73d
commit
c235d4feb2
1 changed files with 1 additions and 9 deletions
|
@ -21,7 +21,7 @@ class DependencyUpdatesPlugin : Plugin<Project> {
|
|||
when (candidate.group) {
|
||||
"com.squareup.okhttp3",
|
||||
"org.jetbrains.kotlin" -> true
|
||||
else -> isNonStable(candidate.version) && !isNonStable(currentVersion)
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
checkForGradleUpdate = true
|
||||
|
@ -30,12 +30,4 @@ class DependencyUpdatesPlugin : Plugin<Project> {
|
|||
keep.keepUnusedLibraries.set(true)
|
||||
}
|
||||
}
|
||||
|
||||
private fun isNonStable(version: String): Boolean {
|
||||
val stableKeyword =
|
||||
listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase(Locale.ROOT).contains(it) }
|
||||
val regex = "^[\\d,.v-]+(-r)?$".toRegex()
|
||||
val isStable = stableKeyword || regex.matches(version)
|
||||
return isStable.not()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue