0

I want to suppress Kotlin compiler warnings using either

  • Command line switches as input to a single Gradle command
  • Device configuration in the file gradle.properties or local.properties

I do not want to check in changed to build.gradle permanently disabling warnings. I know this is possible with kotlinOptions.suppressWarnings = true (see i.e. this answer).

The reason is that I want it to be suppressed only when building from a CI server, where warnings are not relevant to our development process and only causing noise. However when building from a local computer I want me and my peers to see the warnings so that we can act on them.

Nilzor
  • 18,082
  • 22
  • 100
  • 167

0 Answers0