api / org.gradle.api.tasks.compile / JavaCompile / setToolChain

setToolChain

@Incubating open fun setToolChain(toolChain: JavaToolChain): Unit

Sets the tool chain that should be used to compile the Java source.

Parameters

toolChain - The tool chain.