-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (76 loc) · 3.66 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
buildscript {
ext.kotlin_version = '1.3.11'
repositories {
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:3.2.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "de.mannodermaus.gradle.plugins:android-junit5:1.3.1.1"
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
def versions = [
supportLibs: '28.0.0',
okhttp : '3.11.0',
retrofit : '2.4.0',
jackson : '2.9.7',
dagger : '2.19',
room : '1.1.1',
junit5 : '5.3.1',
leakCanary : '1.6.2'
]
ext.libraries = [
// kotlin
kotlin : 'org.jetbrains.kotlin:kotlin-stdlib:' + kotlin_version,
kotlinReflect : 'org.jetbrains.kotlin:kotlin-reflect:' + kotlin_version,
// support libraries
appCompat : 'com.android.support:appcompat-v7:' + versions.supportLibs,
design : 'com.android.support:design:' + versions.supportLibs,
recyclerView : 'com.android.support:recyclerview-v7:' + versions.supportLibs,
cardView : 'com.android.support:cardview-v7:' + versions.supportLibs,
// UI elements
googleMaps : 'com.google.android.gms:play-services-maps:16.0.0',
// jackson libraries
jackson : 'com.fasterxml.jackson.core:jackson-databind:' + versions.jackson,
jacksonKotlin : 'com.fasterxml.jackson.module:jackson-module-kotlin:' + versions.jackson,
// internet libraries
okhttp : 'com.squareup.okhttp3:okhttp:' + versions.okhttp,
okhttpLogging : 'com.squareup.okhttp3:logging-interceptor:' + versions.okhttp,
okhttpUrlConnection: 'com.squareup.okhttp3:okhttp-urlconnection:' + versions.okhttp,
retrofit : 'com.squareup.retrofit2:retrofit:' + versions.retrofit,
retrofitRxJava2 : 'com.squareup.retrofit2:adapter-rxjava2:' + versions.retrofit,
retrofitJackson : 'com.squareup.retrofit2:converter-jackson:' + versions.retrofit,
// rx libraries
rxPM : 'me.dmdev.rxpm:rxpm:1.2.3',
// dagger
dagger : 'com.google.dagger:dagger:' + versions.dagger,
daggerProcessor : 'com.google.dagger:dagger-compiler:' + versions.dagger,
// database
roomRuntime : 'android.arch.persistence.room:runtime:' + versions.room,
roomCompiler : 'android.arch.persistence.room:compiler:' + versions.room,
roomRx : 'android.arch.persistence.room:rxjava2:' + versions.room,
// leakCanary
leakCanary : 'com.squareup.leakcanary:leakcanary-android:' + versions.leakCanary,
leakCanaryNoOp : 'com.squareup.leakcanary:leakcanary-android-no-op:' + versions.leakCanary,
// other
jsoup : 'org.jsoup:jsoup:1.11.3',
// test libraries
junit4 : 'junit:junit:4.12',
junit5API : 'org.junit.jupiter:junit-jupiter-api:' + versions.junit5,
junit5Engine : 'org.junit.jupiter:junit-jupiter-engine:' + versions.junit5,
junit5Vintage : 'org.junit.vintage:junit-vintage-engine:' + versions.junit5,
mockwebserver : 'com.squareup.okhttp3:mockwebserver:' + versions.okhttp,
roomTesting : 'android.arch.persistence.room:testing:' + versions.room,
testRunner : 'com.android.support.test:runner:1.0.2',
espresso : 'com.android.support.test.espresso:espresso-core:3.0.2'
]