title: Exclude files from FileTree in Gradle
body: <p>I want to exclude <strong>src\main</strong> and <strong>src\test</strong> files from <strong>src</strong></p>
  
  <pre><code>FileCollection files = 
  project.fileTree(/src/).minus(project.fileTree(/src\main/)).minus(project.fileTree(/src\test/))
  </code></pre>
  
  <p>How can I exclude this directories without double minus usage?</p>