title: Exclude file from Gradle test dependency
body: <p>I have rather expensive tests in my gradle java project, so I would like to avoid running them too often. Unfortunately, gradle reruns the tests on every build, since some log file in the resource-folder is changing. </p>
  
  <p>Is there any way to exclude log-files from the dependency checks of <code>:processTestResources</code> and <code>:test</code>? I tried to include a <code>exclude</code> command in my <code>test</code> task, but this doesn't seem to do anything. My <code>test</code> task is</p>
  
  <pre><code>test {
      maxHeapSize = "2048m"
      workingDir = "src/test/resources/test-instance"
      environment "LD_LIBRARY_PATH", "xpressmp/lib:/opt/gurobi/linux64/lib"
      environment "XPRESS", "xpressmp/bin"
      environment "XPRESSDIR", "xpressmp"
      exclude("*.log")
      exclude("*.lp")
  }
  </code></pre>