What is the difference between toolchain version a...
# gradle
e
What is the difference between toolchain version and target language version?
m
toolchain version is the JVM used to compile. A given JVM can use sourceCompatibility/targetCompatibility (and most importantly --release) to target lower versions. See https://jakewharton.com/gradle-toolchains-are-rarely-a-good-idea/
☝️ 1
e
Thanks, does it mean with set of toolchain I don't use possible benefits from the newer JDK?
m
Yes, toolchains download/use older tooling
You can use a toolchain and set it to the latest Java version
But you probably want to use that same latest Java version to run your Gradle build as well