Questions tagged [gradle-java-toolchain]

2 questions
1
vote
4 answers

Can we force the use of a JDK as Gradle Java toolchain?

Gradle 6.7 introduced Java toolchains. In the documentation, they state that Gradle chooses a JRE/JDK matching the requirements of the build ... By default, Gradle prefers installed JDKs over JREs... (from docs.gradle.org: Toolchains for JVM…
Markus Weninger
  • 11,931
  • 7
  • 64
  • 137
0
votes
1 answer

nativeCompile task fails gu tool wasn't found even if vendor set to Graal VM

I have jvm toolchain configured as follows: kotlin { jvmToolchain { languageVersion.set(JavaLanguageVersion.of(17)) vendor.set(GRAAL_VM) } } My Gradle config: However, if I run When I run nativeRun task, I get: Execution…
pixel
  • 24,905
  • 36
  • 149
  • 251