Update mockito and fix dependency updates task
Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
parent
a832a60c11
commit
127a8b8c8a
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ dependencies {
|
||||||
|
|
||||||
// Testing-only dependencies
|
// Testing-only dependencies
|
||||||
androidTestImplementation("junit:junit:4.12")
|
androidTestImplementation("junit:junit:4.12")
|
||||||
androidTestImplementation("org.mockito:mockito-core:2.25.0")
|
androidTestImplementation("org.mockito:mockito-core:2.27.0")
|
||||||
androidTestImplementation("androidx.test:runner:1.1.1")
|
androidTestImplementation("androidx.test:runner:1.1.1")
|
||||||
androidTestImplementation("androidx.test:rules:1.1.1")
|
androidTestImplementation("androidx.test:rules:1.1.1")
|
||||||
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.1")
|
androidTestImplementation("androidx.test.espresso:espresso-core:3.1.1")
|
||||||
|
|
|
@ -31,7 +31,7 @@ tasks {
|
||||||
val blacklistedGroups = listOf("commons-io", "org.eclipse.jgit")
|
val blacklistedGroups = listOf("commons-io", "org.eclipse.jgit")
|
||||||
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
|
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
|
||||||
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
|
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
|
||||||
.any { it.matches(candidate.version) && blacklistedGroups.contains(candidate.group) }
|
.any { it.matches(candidate.version) || blacklistedGroups.contains(candidate.group) }
|
||||||
if (rejected) {
|
if (rejected) {
|
||||||
reject("Release candidate")
|
reject("Release candidate")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue