-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
74 lines (59 loc) · 1.88 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
buildscript {
apply from: 'dependencies.gradle'
repositories {
jcenter()
google()
}
dependencies {
classpath rootProject.ext.kotlinPlugin
classpath rootProject.ext.androidPlugin
classpath rootProject.ext.androidMavenGradlePlugin
}
}
allprojects {
repositories {
jcenter()
google()
maven { url 'http://dl.bintray.com/kotlin/kotlinx' }
}
group = GROUP
version = VERSION_NAME
}
apply from: 'dependencies.gradle'
ext.configureLibrary = { proj ->
delegate = proj
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
android {
compileSdkVersion proj.compileSdkVersion
defaultConfig {
minSdkVersion proj.minSdkVersion
javaCompileOptions.annotationProcessorOptions.includeCompileClasspath false
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
abortOnError getBoolProperty('lintAbortOnError', false)
}
// resourcePrefix "${proj.name.replace("-", "_")}_"
}
dependencies {
testImplementation proj.robolectric
testImplementation proj.junit
testImplementation proj.truth
testImplementation proj.mockito
testImplementation proj.mockitoKotlin
testImplementation proj.kotlinStdlib
testImplementation proj.kotlinReflect
testImplementation project(':power-adapters-test')
api proj.androidXAnnotation
}
apply plugin: 'com.github.dcendents.android-maven'
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
}
def getBoolProperty(String name, boolean defaultValue) {
return new Boolean(hasProperty(name) ? project.properties[name].toBoolean() : defaultValue)
}