Apply JVM Target to all Kotlin tasks

This commit is contained in:
tzugen 2021-05-24 12:04:18 +02:00
parent d8500e45e4
commit f9401ba1fa
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
2 changed files with 7 additions and 4 deletions

View File

@ -35,6 +35,13 @@ allprojects {
google()
maven { url 'https://jitpack.io' }
}
// Set Kotlin JVM target to the same for all subprojects
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
apply from: 'gradle_scripts/jacoco.gradle'

View File

@ -13,10 +13,6 @@ android {
targetSdkVersion versions.targetSdk
}
kotlinOptions {
jvmTarget = "1.8"
}
compileOptions {
// Sets Java compatibility to Java 8
sourceCompatibility JavaVersion.VERSION_1_8