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:
Harsh Shandilya 2019-03-15 18:34:05 +05:30
parent cb47792ae6
commit 59ac91ebbc
No known key found for this signature in database
GPG key ID: C2E74282C2133D62

View file

@ -28,9 +28,10 @@ tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
resolutionStrategy {
componentSelection {
all {
val blacklistedGroups = listOf("com.nononsenseapps", "commons-io", "org.eclipse.jgit")
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
.any { it.matches(candidate.version) }
.any { it.matches(candidate.version) && blacklistedGroups.contains(candidate.group) }
if (rejected) {
reject("Release candidate")
}