-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
61 lines (51 loc) · 1.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
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'groovyx.android'
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
buildscript {
dependencies {
classpath rootProject.ext.kotlinPlugin
}
}
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 24
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets {
test.java.srcDirs += 'src/test/groovy'
}
testOptions {
unitTests.returnDefaultValues = true
}
androidGroovy {
options {
// We don't use groovy in production code so we'd like to disable Groovy processing.
configure { GroovyCompile task ->
task.enabled = task.name.contains("Test")
project.logger.info("Checking whether groovy should be enabled for $task.name: ->> $task.enabled\n")
}
}
}
}
dependencies {
implementation rootProject.ext.libs.steppermotor_base
implementation rootProject.ext.libs.appcompat
implementation rootProject.ext.libs.kotlin
compileOnly rootProject.ext.libs.android_things
testImplementation rootProject.ext.libs.junit
testImplementation rootProject.ext.libs.groovy
testImplementation rootProject.ext.libs.spock
testImplementation rootProject.ext.libs.mockito
testImplementation rootProject.ext.libs.android_things
}