title: Ignore generated resources from Spotless
body: <p>My Project is using <code>spotless</code> plugin. I need to ignore java files from the <code>generated-resources</code> directory. How to do the same.</p>
  
  <p>This is how I am using the plugin.</p>
  
  <pre><code> apply plugin: "com.diffplug.gradle.spotless"
    spotless {
      lineEndings = 'unix';
      java {
        eclipseFormatFile "eclipse-java-google-style.xml"
      }
    }
  </code></pre>
  
  <p><code>sourceSets</code> has <code>generated-resources</code> directory included which I do not want to remove.</p>