Working only with changed files

Hello, I’m trying to learn gradle api by implementing a plugin to help build php prpojects.
What I’m trying to do is lint (php -l ) each individual file that changed since the last successful run.

I’d like to know if it’s possible to filter specific fileset to get only changed files from last successfull task run.

If I decided to implement caching myself, is there some part of the API that could help me achieve this?

For reference, I would like to achieve similar behavior to ants ‘apply’ with ‘modified’ selector.

Have a look at the user guide about incremental task inputs.

1 Like

Thank you. I can’t believe I missed that.