ultrasonic-app-subsonic-and.../gradle_scripts/android-module-bootstrap.gr...

75 lines
1.7 KiB
Groovy
Raw Normal View History

apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
2018-10-07 21:21:49 +02:00
apply plugin: 'jacoco'
apply from: "${project.rootDir}/gradle_scripts/code_quality.gradle"
androidExtensions {
experimental = true
}
android {
compileSdkVersion versions.compileSdk
defaultConfig {
2020-04-26 12:05:28 +02:00
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
sourceSets {
main.java.srcDirs += "${projectDir}/src/main/kotlin"
test.java.srcDirs += "${projectDir}/src/test/kotlin"
test.java.srcDirs += "${projectDir}/src/integrationTest/kotlin"
test.resources.srcDirs += "${projectDir}/src/integrationTest/resources"
}
buildTypes {
debug {
minifyEnabled false
debuggable true
}
release {
minifyEnabled false
}
}
// Disable generating BuildConfig class by default
// Replace it with https://issuetracker.google.com/issues/72050365 once released.
libraryVariants.all {
generateBuildConfig.enabled = false
}
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(Test) {
useJUnitPlatform()
2018-10-07 21:21:49 +02:00
jacoco {
2020-08-24 13:59:40 +02:00
includeNoLocationClasses = true
2018-10-07 21:21:49 +02:00
excludes += jacocoExclude
}
}
dependencies {
api other.kotlinStdlib
testImplementation testing.junit
testRuntimeOnly testing.junitVintage
}
jacoco {
toolVersion(versions.jacoco)
}
ext {
2020-08-24 13:59:40 +02:00
jacocoExclude = ['jdk.internal.*']
}