-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
111 lines (100 loc) · 3.5 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
general = [
versionCode: 1,
versionName: "0.0.1"
]
androidSdk = [
compileSdkVersion: 26,
minSdkVersion : 21,
targetSdkVersion : 27
]
libVersion = [
android : [
support: [
appCompat : "${androidSdk.targetSdkVersion}.0.2",
constraint: '1.0.2'
],
gradle : '3.0.1'
],
crashlytics : '2.8.0',
fabric : '1.24.5',
firebase : [
jobdispatcher: '0.8.4'
],
google : [
dagger: '2.13',
gson : '2.8.2'
],
kotlin : '1.2.10',
playPublisher: '1.2.0',
rx : [
android: '2.0.1',
java : '2.1.7',
kotlin : '2.0.0-RC1'
],
squareup : [
okhttp3: '3.9.1'
],
test : [
android : [
support : '1.0.1',
uiautomator: '2.1.3'
],
assertj : '3.8.0',
composer: [
plugin: '0.5.0',
tester: '0.2.8'
],
junit : '4.12',
junit5 : [
androidPlugin: '1.0.22',
gradle : '1.0.2',
main : '5.0.2'
],
kluent : '1.30',
truth : '0.37'
],
timber : '4.6.0',
threeten : '1.3.6',
versionPlugin: '0.17.0'
]
}
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath "com.android.tools.build:gradle:${libVersion.android.gradle}"
classpath "com.github.ben-manes:gradle-versions-plugin:${libVersion.versionPlugin}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${libVersion.kotlin}"
classpath "org.junit.platform:junit-platform-gradle-plugin:${libVersion.test.junit5.gradle}"
classpath "de.mannodermaus.gradle.plugins:android-junit5:${libVersion.test.junit5.androidPlugin}"
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.github.ben-manes.versions'
allprojects {
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'cr', 'm'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}