How about:

task distribution(type: Zip, dependsOn: subprojects*.dists).doFirst {
        task ->

        task.configure {
           // same subproject.each {...}
        }
}

I haven't tried this, but I think it will work.  Basically, this postpones
configuring the task until immediately before execution.

I bet that Hans or Adam will come in here and offer a much more elegant
solution, however.  :)


-- 
John Murph
Automated Logic Research Team

Reply via email to