标签:
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
标签:
原文地址:http://blog.csdn.net/xiatian6032/article/details/43759369