Such warnings are from Kotlin and should be handled by allWarningsAsErrors
are you sure that you applied kotlinOptions to all your modules? Where do you put your
compileKotlin
configuration? Because this is configuration of this task only for specific project
Also do you use standard kotlin compiler tasks?