I would like to use `SpecificInstallationToolchain...
# community-support
s
I would like to use
SpecificInstallationToolchainSpec
from my code but it's internal and it changed between 8.12.1 and 8.13. Is there any workaround? I need a JavaToolchainSpec that corresponds to a specific Java home because I want to create a ProviderJavaLauncher for this specific Java installation.
v
There is not yet a supported way to create a toolchain programmatically as far as I know: https://github.com/gradle/gradle/issues/16245 Usually the work-around is to set
executable
instead of
Provider<JavaLauncher>
given the task in question supports it.
s
thanks 😞
I'll use reflection for now.