How to create a FileCollection instance in a @Mutate rule method

I would just keep track of all the task names and then create the composite build task last.

def itemTasks = []
// loop over items and append task name to temTasks
tasks.create('execItems') {
    dependsOn itemTasks
}

Eeeeexcellent. Works like a charm. Thanks!