As I understand the Incremental Build concept, task inputs and outputs have to be defined before task execution. We have several quite complicated legacy code generators for which I cannot tell in advance, which files will be generated. Another generator doesnt only read the defined input files, but additional files, which I cannot predict also.
Wouldn’t it be nice, if I could define task inputs and outputs after the task has been executed and Gradle is remembering that. And if nothing has changed in the next Gradle run, the task doesn’t need to run - and Gradle knows that without asking the task.