Update build.gradle.kts
This commit is contained in:
@@ -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 }
|
Reference in New Issue
Block a user