1、創建task與依賴
在build.gradle中
task hello{
println "in main body of hello task"
doFirst{
println "hello do first"
}
doLast{
println "hello do Last"
}
}
task intro(dependsOn: hello) << {
println "I`m gradle"
}
輸出:
二、動態地創建task
三、操作已存在的task
四、給已存在的task增加behaviour
五、增加task的properties
六、運用methods
七、定義默認task
八、Configure by DAG