This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 241
/
build.gradle
66 lines (59 loc) · 1.63 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
buildscript {
ext.versions = [
'minSdk': 14,
'compileSdk': 26,
'buildTools': '26.0.2',
'supportLibrary': '26.0.2'
]
ext.deps = [
'support': [
'annotations': "com.android.support:support-annotations:${versions.supportLibrary}",
'appcompat': "com.android.support:appcompat-v7:${versions.supportLibrary}",
'design': "com.android.support:design:${versions.supportLibrary}",
'test': [
'espresso': 'com.android.support.test.espresso:espresso-core:3.0.1',
'runner': 'com.android.support.test:runner:1.0.1',
'rules': 'com.android.support.test:rules:1.0.1',
]
],
'junit': 'junit:junit:4.12',
'assertj': 'org.assertj:assertj-core:3.8.0',
'mockito': 'org.mockito:mockito-core:2.10.0',
'robolectric': 'org.robolectric:robolectric:3.4.2',
'antTasks': 'org.apache.maven:maven-ant-tasks:2.1.3',
]
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-rc1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.15.0'
}
repositories {
jcenter()
google()
}
}
apply plugin: 'com.github.ben-manes.versions'
subprojects {
repositories {
jcenter()
google()
}
afterEvaluate { project ->
android {
lintOptions {
quiet false
textReport true
textOutput 'stdout'
}
}
}
configurations.all {
resolutionStrategy {
eachDependency { details ->
// Force all of the primary support libraries to use the same version.
if (details.requested.group == 'com.android.support') {
details.useVersion versions.supportLibrary
}
}
}
}
}