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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You should use the
-xcommand 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