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

setIncremental

open fun setIncremental(incremental: Boolean): CompileOptions

Configure the java compilation to be incremental (e.g. compiles only those java classes that were changed or that are dependencies to the changed classes).