Gradle build without tests

后端 未结 13 1577
后悔当初
后悔当初 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条回答
  •  旧时难觅i
    2020-12-12 09:47

    Try:

    gradle assemble
    

    To list all available tasks for your project, try:

    gradle tasks
    

    UPDATE:

    This may not seem the most correct answer at first, but read carefully gradle tasks output or docs.

    Build tasks
    -----------
    assemble - Assembles the outputs of this project.
    build - Assembles and tests this project.
    

提交回复
热议问题