Sebastian Schuberth
09/19/2024, 5:57 AM./gradlew javaToolchains includes
+ Eclipse Temurin JDK 21.0.4+7-LTS
| Location: /home/sebastian/.gradle/jdks/eclipse_adoptium-21-amd64-linux.2
| Language Version: 21
| Vendor: Eclipse Temurin
| Architecture: amd64
| Is JDK: true
| Detected by: Current JVM
but if I add gradle/gradle-daemon-jvm.properties with
toolchainVersion = 21
I start getting
* What went wrong:
A problem occurred configuring project ':buildSrc'.
> Failed to calculate the value of task ':buildSrc:compileJava' property 'javaCompiler'.
> Toolchain installation '/usr/lib/jvm/java-21-openjdk-21.0.4.0.7-2.fc40.x86_64' does not provide the required capabilities: [JAVA_COMPILER]
Does that make sense to anyone? Why wouldn't Gradle just use the Adoptium 21 JDK it detected before for the daemon? PS: At least the detection is right in that the system Java installation lacks javac.Sebastian Schuberth
09/19/2024, 6:24 AMVampire
09/20/2024, 7:10 PMSebastian Schuberth
09/20/2024, 7:24 PM