forked from JakeWharton/timber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
78 lines (68 loc) · 2.3 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
apply plugin: 'com.github.ben-manes.versions'
buildscript {
ext.versions = [
'minSdk': 9,
'compileSdk': 28,
'kotlin': '1.2.51',
'androidPlugin': '3.1.3',
'androidTools': '26.1.3',
'butterknife': '8.8.1',
]
ext.deps = [
androidPlugin: "com.android.tools.build:gradle:${versions.androidPlugin}",
'kotlin': [
'stdlib': [
'common': "org.jetbrains.kotlin:kotlin-stdlib-common:${versions.kotlin}",
'jdk': "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
'js': "org.jetbrains.kotlin:kotlin-stdlib-js:${versions.kotlin}",
],
'test': [
'common': "org.jetbrains.kotlin:kotlin-test-common:${versions.kotlin}",
'annotations': "org.jetbrains.kotlin:kotlin-test-annotations-common:${versions.kotlin}",
'jdk': "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}",
'js': "org.jetbrains.kotlin:kotlin-test-js:${versions.kotlin}",
],
],
'butterknife': [
'runtime': "com.jakewharton:butterknife:${versions.butterknife}",
'compiler': "com.jakewharton:butterknife-compiler:${versions.butterknife}"
],
'lint': [
'core': "com.android.tools.lint:lint:${versions.androidTools}",
'api': "com.android.tools.lint:lint-api:${versions.androidTools}",
'checks': "com.android.tools.lint:lint-checks:${versions.androidTools}",
'tests': "com.android.tools.lint:lint-tests:${versions.androidTools}",
],
annotations: 'org.jetbrains:annotations:16.0.1',
junit: 'junit:junit:4.12',
truth: 'com.google.truth:truth:0.41',
robolectric: 'org.robolectric:robolectric:3.8',
]
repositories {
jcenter()
google()
gradlePluginPortal()
}
dependencies {
classpath deps.androidPlugin
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath 'com.moowork.gradle:gradle-node-plugin:1.2.0'
}
}
subprojects {
repositories {
mavenCentral()
jcenter()
google()
}
tasks.withType(Test) {
testLogging {
events "failed"
exceptionFormat "full"
showExceptions true
showStackTraces true
showCauses true
}
}
}