Task of type zip is executed in configuration phase every time?


(manuel.meiners) #1

I’ve created a task of type zip. It seems to me that the task is executed in configuration phase every time. I thought changing:

task createZip1(type: Zip) {

to

task createZip1(type: Zip) << {

might solve the problem, but the zip isn’t created in this case. I simply want to define several zip-Task, that zip information in my project directory and i want to execute them with “gradle -q createZip1”. It thought that this would be that hard. What i’m doing wrong?

Thanks


(Peter Niederwieser) #2

A task is never executed in the configuration phase. Maybe there is something wrong with how you configure it.