Gradle: Add a task dependency

If you already have a task -- test for example -- and you want to make that depend on a task you've written you can do the following:

task myTask() {
  // blar

test.dependsOn myTask

'gradle test' will look like

gradle gradle-task-dependency

Edit on github
comments powered by Disqus
Click me