api / org.gradle.api.tasks.compile / CompileOptions / setFork

setFork

open fun setFork(fork: Boolean): Unit

Sets whether to run the compiler in its own process. Note that this does not necessarily mean that a new process will be created for each compile task. Defaults to false.