0

Is it possible to add a compiler settings to .gradlew clean test? I don't want to modify gradle.build as I want to have cleaner console output and not see all compilation warnings / deprecations.

I found here: Gradle - compileJava - remove compile Warnings that I could add:

options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"

in build.gradle but is tthere an option to pass that in command line directly?

doublemc
  • 3,021
  • 5
  • 34
  • 61

1 Answers1

0

Short answer : no you can't do that.

You can only pass project properties or Java system properties

You will have to change your build.gradle in order to add this manually or dynamically, using the project properties build-in system.

ToYonos
  • 16,469
  • 2
  • 54
  • 70