From 01c372f2911295ce748a461bcd945c5100a3d57c Mon Sep 17 00:00:00 2001 From: Philipp Keck Date: Sun, 29 Jan 2023 14:30:04 +0100 Subject: [PATCH] Use Gradle toolchain also for the command --- build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 4ed51e9..b84c8bb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -64,6 +64,12 @@ tasks.withType { kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn" } +tasks.withType { + javaLauncher.set(javaToolchains.launcherFor { + languageVersion.set(JavaLanguageVersion.of(17)) + }) +} + compose.desktop { application {