Since Kotlin 1.2, the command line argument -Werror
is supported. In Gradle, it’s named allWarningsAsErrors
:
compileKotlin {
kotlinOptions.allWarningsAsErrors = true
}
Since Kotlin 1.2, the command line argument -Werror
is supported. In Gradle, it’s named allWarningsAsErrors
:
compileKotlin {
kotlinOptions.allWarningsAsErrors = true
}