Gradle build without tests

后端 未结 13 1561
后悔当初
后悔当初 2020-12-12 08:41

I want to execute gradle build without executing the unit tests. I tried:

$ gradle -Dskip.tests build

That doesn\'t seem to

13条回答
  •  天命终不由人
    2020-12-12 09:27

    You should use the -x command line argument which excludes any task.

    Try:

    gradle build -x test 
    

    Update:

    The link in Peter's comment changed. Here is the diagram from the Gradle user's guide

提交回复
热议问题