Update mockito and fix dependency updates task

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
This commit is contained in:
Harsh Shandilya 2019-05-01 17:03:58 +05:30
parent a832a60c11
commit 127a8b8c8a
No known key found for this signature in database
GPG key ID: C2E74282C2133D62
2 changed files with 2 additions and 2 deletions

View file

@ -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")

View file

@ -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")
} }