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

getJavaHome

@Internal @Incubating open fun getJavaHome(): File

Returns 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