api / org.gradle.api.tasks.compile / ForkOptions / setJavaHome

setJavaHome

@Incubating open fun setJavaHome(javaHome: File): Unit

Sets the Java home which contains the compiler to use. If set, a new compiler process will be forked for every compile task. Defaults to null.

Since
3.5