How to set upToDateWhen in task definition?

I’m writing a task like so:

class NewTask extends ExistingTask {
// implement up-to-date check here
}

What methods of a task do I have to override / add / call in order to make this happen? Again, there’s nothing in the documentation that would help finding this information.

The constructor is the right place for setup like that.

1 Like