Thanks Stefan for your reply.
There could be some other task which consumes that file and depends on the first task execution.
However, if I understood you correctly, if Task A changes content of a file ("${buildDir}/xxx"
) and Task B has that file (its location) set as @Input
(and Task B depends on Task A), would it (Task B) be marked as dirty due to the content of that file change (without the need to mark that file as @OutputFile
in Task A)?