Skip to content

Instantly share code, notes, and snippets.

@xconnecting
Created December 6, 2012 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xconnecting/4221962 to your computer and use it in GitHub Desktop.
Save xconnecting/4221962 to your computer and use it in GitHub Desktop.
Gradle: Task Rules Sample
tasks.addRule("Pattern: sample<ID>") { String taskName ->
if (taskName.startsWith("sample")) {
task(taskName) << {
println taskName - 'sample'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment