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
1 changed files with 2 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue