-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
89 lines (76 loc) · 2.13 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.0'
repositories {
jcenter()
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'org.greenrobot:greendao-gradle-plugin:3.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
maven { url 'https://maven.google.com' }
}
apply plugin: 'checkstyle'
task checkstyle(type: Checkstyle) {
source 'src'
include '**/*.java'
exclude '**/gen/**'
exclude '**/R.java'
exclude '**/BuildConfig.java'
configFile new File(rootDir, "checkstyle.xml")
// empty classpath
classpath = files()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
// Define versions in a single place
ext {
// Sdk and tools
minSdkVersion = 18
targetSdkVersion = 22
compileSdkVersion = 25
buildToolsVersion = '26.0.2'
// App dependencies
supportLibraryVersion = '25.2.0'
rxjavaVersion = '2.0.6'
rxandroidVersion = '2.0.1'
rxlifecycleVersion = '2.0.1'
retrofitVersion = '2.3.0'
sqlbriteVersion = '0.7.0'
leakcanaryVersion = "1.3"
okhttpVersion = "3.8.1"
greendaoVersion = "3.2.0"
vlayoutVersion = "1.0.7"
dagger2Version = "2.13"
eventbusVersion = "3.1.1"
// UI test
runnerVersion = "0.5"
rulesVersion = "0.5"
espressoVersion = "2.2.2"
// logic test
junitVersion = '4.12'
mockitoVersion = '1.10.19'
powerMockito = '1.6.2'
hamcrestVersion = '1.3'
daggerMockVersion = "0.6.6"
//需检查升级版本
annotationProcessor = "1.1.7"
routerVersion = "1.2.4"
routercompilerVersion = "1.1.4"
//anko
ankoVersion = '0.10.0'
ijkplayerVersion = '0.8.4'
}