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

setFailOnError

open fun setFailOnError(failOnError: Boolean): Unit

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