Use Gradle toolchain also for the command
This commit is contained in:
parent
3bd13191e2
commit
01c372f291
1 changed files with 6 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue