mirror of
https://github.com/android-password-store/Android-Password-Store.git
synced 2025-09-06 04:51:38 +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 {
|
||||
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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue