-
Notifications
You must be signed in to change notification settings - Fork 3.3k
/
Copy pathbuild.gradle
71 lines (59 loc) · 1.95 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'me.tatarka:gradle-retrolambda:3.7.0'
}
}
apply plugin: 'com.android.library'
//apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'me.tatarka.retrolambda'
android {
defaultPublishConfig "debug"
def globalConfiguration = rootProject.extensions.getByName("ext")
compileSdkVersion globalConfiguration.getAt("androidCompileSdkVersion")
buildToolsVersion globalConfiguration.getAt("androidBuildToolsVersion")
defaultConfig {
minSdkVersion globalConfiguration.getAt("androidMinSdkVersion")
targetSdkVersion globalConfiguration.getAt("androidTargetSdkVersion")
versionCode globalConfiguration.getAt("androidVersionCode")
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
lintOptions {
quiet true
abortOnError false
ignoreWarnings true
disable 'InvalidPackage' // Some libraries have issues with this
disable 'OldTargetApi' // Due to Robolectric that modifies the manifest when running tests
}
}
dependencies {
def dataDependencies = rootProject.ext.dataDependencies
def testDependencies = rootProject.ext.dataTestDependencies
implementation project(':domain')
compileOnly dataDependencies.javaxAnnotation
implementation dataDependencies.javaxInject
implementation dataDependencies.okHttp
implementation dataDependencies.gson
implementation dataDependencies.rxJava
implementation dataDependencies.rxAndroid
implementation dataDependencies.androidAnnotations
testImplementation testDependencies.junit
testImplementation testDependencies.assertj
testImplementation testDependencies.mockito
testImplementation testDependencies.robolectric
}
repositories {
google()
}