I want to execute gradle build
without executing the unit tests. I tried:
$ gradle -Dskip.tests build
That doesn't seem to do anything. Is there some other command I could use?
gradle
I want to execute gradle build
without executing the unit tests. I tried:
$ gradle -Dskip.tests build
That doesn't seem to do anything. Is there some other command I could use?
Best Answer
You should use the
-x
command line argument which excludes any task.Try:
Update:
The link in Peter's comment changed. Here is the diagram from the Gradle user's guide