aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2019-07-04 12:10:24 +0530
committerHarsh Shandilya <msfjarvis@gmail.com>2019-07-04 12:47:08 +0530
commit2b23dea904efa83b7b55787aa0151abb7484b6b1 (patch)
tree1988ad28da791731fa261e7e70a525c004a531da
parent2e8fe06b2bbe42009820fd191b3ce740b9cd90ca (diff)
build: Allow alpha/beta/rc dependencies
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
-rw-r--r--build.gradle.kts8
1 files changed, 2 insertions, 6 deletions
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")
}
}
}