Gradle build without tests

后端 未结 13 1514
后悔当初
后悔当初 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: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.
    
    0 讨论(0)
提交回复
热议问题