Skip to content

Instantly share code, notes, and snippets.

@xcv58
Last active August 31, 2015 21:38
Show Gist options
  • Select an option

  • Save xcv58/fa7b6bd0f2eab97ef8c0 to your computer and use it in GitHub Desktop.

Select an option

Save xcv58/fa7b6bd0f2eab97ef8c0 to your computer and use it in GitHub Desktop.
dependsOn and overwrite conflict
task a << {
println 'task a'
}
task b(dependsOn: {a}) << { // works
// task b(dependsOn: 'a') << { // works
// task b(dependsOn: [a]) << { // doesn't work
// task b(dependsOn: a) << { // doesn't work
// task b << {
println 'task b'
}
// b.dependsOn a // doesn't work
// b.dependsOn 'a' // works
// b.dependsOn {a} // works
task a(overwrite: true) << {
println 'overwrite task a'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment