From 2b23dea904efa83b7b55787aa0151abb7484b6b1 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 4 Jul 2019 12:10:24 +0530 Subject: build: Allow alpha/beta/rc dependencies Signed-off-by: Harsh Shandilya --- build.gradle.kts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index 31ad9a38..54df1745 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -28,12 +28,8 @@ tasks { resolutionStrategy { componentSelection { all { - val blacklistedGroups = listOf("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) || blacklistedGroups.contains(candidate.group) } - if (rejected) { - reject("Release candidate") + if (listOf("commons-io", "org.eclipse.jgit").contains(candidate.group)) { + reject("Blacklisted package") } } } -- cgit v1.2.3