Closed
Description
Gradle 6.7 will introduce built-in support for Toolchains for JVM projects.
Once we upgrade to Gradle 6.7, we will should hopefully be able to replace the functionality in custom-java-home.gradle
with the new built-in support.
Note from the Gradle team:
Toolchains and
*Compatibility
: the moment you use toolchain at the project level,sourceCompatibility
andtargetCompatibility
from the project have a value derived from the toolchain. What you cannot do is overwrite that value. You can still overwrite it at the task level though.