mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-06 17:04:09 +02:00
build: Allow alpha/beta/rc dependencies
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
2e8fe06b2b
commit
2b23dea904
|
@ -28,12 +28,8 @@ tasks {
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
componentSelection {
|
componentSelection {
|
||||||
all {
|
all {
|
||||||
val blacklistedGroups = listOf("commons-io", "org.eclipse.jgit")
|
if (listOf("commons-io", "org.eclipse.jgit").contains(candidate.group)) {
|
||||||
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
|
reject("Blacklisted package")
|
||||||
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
|
|
||||||
.any { it.matches(candidate.version) || blacklistedGroups.contains(candidate.group) }
|
|
||||||
if (rejected) {
|
|
||||||
reject("Release candidate")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue