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

setDeprecation

open fun setDeprecation(deprecation: Boolean): Unit

Sets whether to log details of usage of deprecated members or classes. Defaults to false.