Warnings as errors using Maven?


In 1.2.0 there is a nice new option for the Kotlin compiler to treat all warnings as errors. In the release-notes there is a Gradle example enabling this. How can I do this if I’m using Maven?


You can pass arbitrary compiler arguments to the Kotlin maven plugin in its configuration block:

                <!-- ... -->


Perfect, thanks!