From 7aa598cceafd92717561b8c8a194772c0435db5f Mon Sep 17 00:00:00 2001 From: brandl Date: Tue, 19 Dec 2023 12:27:46 +0100 Subject: [PATCH] fixed build for java11 --- modules/animation/build.gradle.kts | 8 ++------ modules/logistics/build.gradle.kts | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/modules/animation/build.gradle.kts b/modules/animation/build.gradle.kts index 34571a52..dc7169b1 100644 --- a/modules/animation/build.gradle.kts +++ b/modules/animation/build.gradle.kts @@ -1,6 +1,3 @@ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile - - plugins { kotlin("jvm") `maven-publish` @@ -178,7 +175,6 @@ signing { sign(publishing.publications["maven"]) } -tasks.withType { - kotlinOptions.jvmTarget = "11" +kotlin { + jvmToolchain(11) } - diff --git a/modules/logistics/build.gradle.kts b/modules/logistics/build.gradle.kts index d2185514..20e7e46e 100644 --- a/modules/logistics/build.gradle.kts +++ b/modules/logistics/build.gradle.kts @@ -1,6 +1,3 @@ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile - - plugins { kotlin("jvm") `maven-publish` @@ -122,7 +119,6 @@ signing { sign(publishing.publications["maven"]) } -tasks.withType { - kotlinOptions.jvmTarget = "11" +kotlin { + jvmToolchain(11) } -