Gradle build without tests

后端 未结 13 1554
后悔当初
后悔当初 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:40

    You can add the following lines to build.gradle, **/* excludes all the tests.

    test {
        exclude '**/*'
    }
    

提交回复
热议问题