cb47792ae6
Mockito core 2.25.0 AGP 3.3.2 Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
|
|
|
buildscript {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:3.3.2")
|
|
classpath(kotlin("gradle-plugin", "1.3.21"))
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("com.github.ben-manes.versions") version "0.21.0"
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
jcenter()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
|
|
resolutionStrategy {
|
|
componentSelection {
|
|
all {
|
|
val rejected = listOf("alpha", "beta", "rc", "cr", "m", "preview")
|
|
.map { qualifier -> Regex("(?i).*[.-]$qualifier[.\\d-]*") }
|
|
.any { it.matches(candidate.version) }
|
|
if (rejected) {
|
|
reject("Release candidate")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
checkForGradleUpdate = true
|
|
outputFormatter = "json"
|
|
outputDir = "build/dependencyUpdates"
|
|
reportfileName = "report"
|
|
}
|