ZenBalance
ZenBalance

Reputation: 10307

How to specify commandline arguments in settings.gradle

I am compiling an Android project with gradle and want to run -x lint with every build.

is it possible to use settings.gradle to automatically add this?

Upvotes: 1

Views: 215

Answers (1)

Peter Niederwieser
Peter Niederwieser

Reputation: 123910

You could add the following to the root project's build.gradle:

gradle.startParameter.excludedTaskNames << "lint"

Upvotes: 2

Related Questions