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

setExecutable

open fun setExecutable(executable: String): Unit

Sets the compiler executable to be used. If set, a new compiler process will be forked for every compile task. Defaults to null.

Setting the executable disables task output caching.