I have a parent task (not sure what you call this type of thing) that looks like this:
task scanall(dependsOn:tasks.findAll{it.name.startsWith("scan_")}