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

setFailOnError

open fun setFailOnError(failOnError: Boolean): Unit

Sets whether to fail the build when compilation fails. Defaults to true.