Update build.gradle.kts

This commit is contained in:
bluefireoly
2020-10-16 19:00:01 +02:00
parent aefac6ab40
commit c9a76facb8

View File

@@ -66,8 +66,8 @@ dependencies {
java.sourceCompatibility = JVM_VERSION java.sourceCompatibility = JVM_VERSION
tasks { tasks {
compileKotlin { configureJvmVersion() } compileKotlin.configureJvmVersion()
compileTestKotlin { configureJvmVersion() } compileTestKotlin.configureJvmVersion()
} }
// SOURCE CODE // SOURCE CODE
@@ -162,4 +162,4 @@ val JavaVersion.versionString get() = majorVersion.let {
if (version <= 10) "1.$it" else it if (version <= 10) "1.$it" else it
} }
fun KotlinCompile.configureJvmVersion() { kotlinOptions.jvmTarget = JVM_VERSION_STRING } fun TaskProvider<KotlinCompile>.configureJvmVersion() { get().kotlinOptions.jvmTarget = JVM_VERSION_STRING }