From c9a76facb8a13b24a3d47e1854b31946cd08fdd1 Mon Sep 17 00:00:00 2001 From: bluefireoly Date: Fri, 16 Oct 2020 19:00:01 +0200 Subject: [PATCH] Update build.gradle.kts --- build.gradle.kts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 6fd601af..f7fc4b01 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -66,8 +66,8 @@ dependencies { java.sourceCompatibility = JVM_VERSION tasks { - compileKotlin { configureJvmVersion() } - compileTestKotlin { configureJvmVersion() } + compileKotlin.configureJvmVersion() + compileTestKotlin.configureJvmVersion() } // SOURCE CODE @@ -162,4 +162,4 @@ val JavaVersion.versionString get() = majorVersion.let { if (version <= 10) "1.$it" else it } -fun KotlinCompile.configureJvmVersion() { kotlinOptions.jvmTarget = JVM_VERSION_STRING } \ No newline at end of file +fun TaskProvider.configureJvmVersion() { get().kotlinOptions.jvmTarget = JVM_VERSION_STRING } \ No newline at end of file