2019-03-02 18:08:57 +00:00
|
|
|
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
|
2014-07-24 00:15:11 +00:00
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-10-11 15:39:45 +00:00
|
|
|
google()
|
2014-07-24 00:15:11 +00:00
|
|
|
jcenter()
|
2015-05-17 16:08:59 +00:00
|
|
|
mavenCentral()
|
2014-07-24 00:15:11 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2019-04-29 12:01:46 +00:00
|
|
|
classpath("com.android.tools.build:gradle:3.4.0")
|
|
|
|
classpath(kotlin("gradle-plugin", "1.3.31"))
|
2014-07-24 00:15:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-02 18:08:57 +00:00
|
|
|
plugins {
|
|
|
|
id("com.github.ben-manes.versions") version "0.21.0"
|
|
|
|
}
|
|
|
|
|
2014-07-24 00:15:11 +00:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2018-10-11 15:39:45 +00:00
|
|
|
google()
|
2014-07-24 00:15:11 +00:00
|
|
|
jcenter()
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 12:01:46 +00:00
|
|
|
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-]*") }
|
2019-05-01 11:33:58 +00:00
|
|
|
.any { it.matches(candidate.version) || blacklistedGroups.contains(candidate.group) }
|
2019-04-29 12:01:46 +00:00
|
|
|
if (rejected) {
|
|
|
|
reject("Release candidate")
|
|
|
|
}
|
2019-03-02 18:08:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-04-29 12:01:46 +00:00
|
|
|
checkForGradleUpdate = true
|
|
|
|
outputFormatter = "json"
|
|
|
|
outputDir = "build/dependencyUpdates"
|
|
|
|
reportfileName = "report"
|
|
|
|
}
|
|
|
|
|
|
|
|
named<Wrapper>("wrapper") {
|
|
|
|
gradleVersion = "5.4.1"
|
|
|
|
distributionType = Wrapper.DistributionType.ALL
|
2019-03-02 18:08:57 +00:00
|
|
|
}
|
|
|
|
}
|