mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-06 17:04:09 +02:00
Blacklist known broken upgrades
As I noted in #489, there are various compelling reasons to not update these packages so let's hide the noise altogether. Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
cb47792ae6
commit
59ac91ebbc
|
@ -28,9 +28,10 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
componentSelection {
|
componentSelection {
|
||||||
all {
|
all {
|
||||||
|
val blacklistedGroups = listOf("com.nononsenseapps", "commons-io", "org.eclipse.jgit")
|
||||||
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
|
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
|
||||||
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
|
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
|
||||||
.any { it.matches(candidate.version) }
|
.any { it.matches(candidate.version) && blacklistedGroups.contains(candidate.group) }
|
||||||
if (rejected) {
|
if (rejected) {
|
||||||
reject("Release candidate")
|
reject("Release candidate")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue