用户工具

站点工具


gradle

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
gradle [2020/03/10 11:40] ploughgradle [2021/03/18 20:53] (当前版本) – [获取所有依赖] plough
行 27: 行 27:
 ==== 帮助入口 ==== ==== 帮助入口 ====
 <code>gradle help</code> <code>gradle help</code>
 +
 +==== 获取所有依赖 ====
 +<code>gradle dependencies > dep.txt</code>
 +
 +==== 排除依赖 ====
 +<code>
 +compile('com.zhyea:ar4j:1.0') {
 +    //excluding a particular transitive dependency:
 +    exclude module: 'cglib' //by artifact name
 +    exclude group: 'org.jmock' //by group
 +    exclude group: 'org.unwanted', module: 'iAmBuggy' //by both name and group
 +}
 +</code>
 +==== 执行指定的 test ====
 +<code>
 +gradle test --tests org.gradle.SomeTest.someSpecificFeature
 +gradle test --tests *SomeTest.someSpecificFeature
 +gradle test --tests *SomeSpecificTest
 +gradle test --tests all.in.specific.package*
 +gradle test --tests *IntegTest
 +gradle test --tests *IntegTest*ui*
 +gradle test --tests *IntegTest.singleMethod
 +</code>
gradle.1583811620.txt.gz · 最后更改: 2020/03/10 11:40 由 plough

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki