Custom plugin task lifecycle

Hi,

I get confused over the lifecycle of tasks in custom plugins, such as which method is invoked when.

What I would like to do is to e.g. set a task dependency based on a task configuration:

task foo(type: my.CustomTask) {

myProperty = ‘bar’ }

During the constructor of CustomTask, the property is not yet set, it seems, and at runtime of the taskAction, it is too late to change the task dependencies. So where is the hook to react to setting of properties during the configuration phase?

Hm, I guess I canimplement a setter for the property,and do the configuration logic there.