Android-Password-Store/build.gradle.kts
Harsh Shandilya 75a595f07f
Dependency updates
Mockito 2.28.2
AndroidX Test 1.2.0
AndroidX Espresso 3.2.0
AGP 3.4.1

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-05-31 12:27:48 +05:30

51 lines
1.4 KiB
Text

import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:3.4.1")
classpath(kotlin("gradle-plugin", "1.3.31"))
}
}
plugins {
id("com.github.ben-manes.versions") version "0.21.0"
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
tasks {
named<DependencyUpdatesTask>("dependencyUpdates") {
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")
}
}
}
}
checkForGradleUpdate = true
outputFormatter = "json"
outputDir = "build/dependencyUpdates"
reportfileName = "report"
}
named<Wrapper>("wrapper") {
gradleVersion = "5.4.1"
distributionType = Wrapper.DistributionType.ALL
}
}