Android-Password-Store/build.gradle.kts

45 lines
1.1 KiB
Text
Raw Normal View History

import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2014-07-24 00:15:11 +00:00
buildscript {
repositories {
google()
2014-07-24 00:15:11 +00:00
jcenter()
mavenCentral()
2014-07-24 00:15:11 +00:00
}
dependencies {
classpath("com.android.tools.build:gradle:3.3.1")
classpath(kotlin("gradle-plugin", "1.3.21"))
2014-07-24 00:15:11 +00:00
}
}
plugins {
id("com.github.ben-manes.versions") version "0.21.0"
}
2014-07-24 00:15:11 +00:00
allprojects {
repositories {
google()
2014-07-24 00:15:11 +00:00
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"
}