Android-Password-Store/build.gradle.kts
Harsh Shandilya ffe489c293 Dependency updates (#489)
* Configure dependencyUpdates task

Configured to emit JSON reports in build directory and to
only use stable releases.

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>

* Update dependencies

Signed-off-by: Harsh Shandilya <msfjarvis@gmail.com>
2019-03-02 19:08:57 +01:00

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.1")
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"
}