title: Gradle: list of changed files as an input for task
body: <p>This task successfully checks if it's up to date, but how can I get access to the changed files in the doLast block? The inputs directory includes a huge amount of files and inputs.files returns every file in that directory.</p>
  
  <pre><code>task foo {
    inputs.dir new File("path/to/files")
    doLast {
      // do stuff with changed files
    }
  }
  </code></pre>