# getIncrementalAfterFailure

@Input
@Optional
@Incubating
abstract fun getIncrementalAfterFailure(): Property<Boolean>(source)

Used to enable or disable incremental compilation after a failure.

By default, incremental compilation after a failure is enabled for Java and Groovy. It has no effect for Scala. It has no effect if incremental compilation is not enabled.

When the Java command line compiler is used, i.e. when a custom java home is passed to forkOptions.javaHome or javac is passed to forkOptions.executable, this optimization is automatically disabled, since the compiler is not invoked via the compiler API.

#### Since

7.6