-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbuild.gradle
46 lines (41 loc) · 1.17 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.10'
}
}
allprojects {
repositories {
google()
jcenter()
mavenLocal()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
wrapper {
gradleVersion = '5.0'
distributionType = Wrapper.DistributionType.ALL
}
// Run './gradlew dependencyUpdates' to see new versions of dependencies
apply plugin: 'com.github.ben-manes.versions'
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { selection ->
boolean rejected = ['alpha', 'beta', 'rc', '20050927'].any { qualifier ->
selection.candidate.version.toLowerCase() ==~ /.*-${qualifier}.*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}