equal
deleted
inserted
replaced
20 |
20 |
21 Running build on specific subproject:: |
21 Running build on specific subproject:: |
22 |
22 |
23 $ gradle :$SUB:clean |
23 $ gradle :$SUB:clean |
24 $ gradle -p $SUB clean |
24 $ gradle -p $SUB clean |
25 $ gradle -Pmodile=$SUB clean |
25 |
|
26 If subproject lies in hierarchy:: |
|
27 |
|
28 $ gradle :$SUB/$SUBSUB:clean |
|
29 $ gradle -p $SUB/$SUBSUB clean |
|
30 |
|
31 Creating multilevel project:: |
|
32 |
|
33 $ mkdir $PRJROOT |
|
34 $ cd $PRJROOT |
|
35 $ mkdir lvl1 lvl1/lvl2 |
|
36 $ touch build.gradle lvl1/build.gradle lvl1/lvl2/build.gradle |
|
37 $ { echo include "'lvl1'"; echo include "'lvl1/lvl2'"; } >settings.gradle |
|
38 $ gradle projects |
|
39 |
|
40 ``settings.gradle`` can include per line or a list of subprojects:: |
|
41 |
|
42 include 'sub1', 'sub2', 'sub2' |
|
43 include 'lvl1' |
|
44 include 'lvl1/lvl2' |
26 |
45 |
27 https://docs.gradle.org/current/userguide/intro_multi_project_builds.html |
46 https://docs.gradle.org/current/userguide/intro_multi_project_builds.html |
28 http://stackoverflow.com/questions/16976214/gradle-build-only-one-module |
47 http://stackoverflow.com/questions/16976214/gradle-build-only-one-module |
29 |
48 |
30 Getting list of supported tasks |
49 Getting list of supported tasks |