Use Gradle toolchain also for the command

This commit is contained in:
Philipp Keck 2023-01-29 14:30:04 +01:00
parent 3bd13191e2
commit 01c372f291

View file

@ -64,6 +64,12 @@ tasks.withType<KotlinCompile> {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
tasks.withType<JavaExec> {
javaLauncher.set(javaToolchains.launcherFor {
languageVersion.set(JavaLanguageVersion.of(17))
})
}
compose.desktop {
application {