api / org.gradle.api.tasks.compile / GroovyCompileOptions / isFailOnError

isFailOnError

@Input open fun isFailOnError(): Boolean

Tells whether the compilation task should fail if compile errors occurred. Defaults to true.