Posts tagged with gralde


  • 使用groovy语法,定义在build.gralde中
println "hello"  
  • 和makefile,ant一样定义task
task hello {  
    doLast {
        println "my task"
    }
}

task hello << {  
   println "shortcut for task"
}
  • 同样可以定义依赖,生成DAG
task next(dependsOn: first) << {  
    println "my next task"
}
  • 能够在DAG上挂载hook
gradle