¡Ü gradle build phases
1.Initialization
2.Configuration
3.Execution
¡Ü gradle ¼³Á¤ ÆÄÀÏ
[zany@zany-mbp sample-proj]$ ll
total 32
-rw-r--r-- 1 zany staff 480 9 27 11:01 build.gradle
-rw-r--r-- 1 zany staff 64 9 27 10:56 settings.gradle
drwxr-xr-x@ 4 zany staff 136 9 26 10:28 src/
¡Ü settings.gradle
¡Ü build.gradle
¡Ü test1 task ½ÇÇà
[zany@zany-mbp sample-proj]$ gradle test1
[1] This is executed during the initialization phase.
[2] This is executed during the configuration phase.
[3] This is also executed during the configuration phase.
[4] This is executed during the configuration phase as well.
:test1
[4] This is executed during the execution phase.
BUILD SUCCESSFUL
Total time: 0.923 secs
¡Ü test2 task ½ÇÇà
[zany@zany-mbp sample-proj]$ gradle test2
[1] This is executed during the initialization phase.
[2] This is executed during the configuration phase.
[3] This is also executed during the configuration phase.
[4] This is executed during the configuration phase as well.
:test2
[5] This is executed first during the execution phase.
[6] This is executed last during the execution phase.
BUILD SUCCESSFUL
Total time: 0.847 secs
|