title: Intellij tries to compile excluded java files
body: <p>From Gradle command line, the Foo.java is excluded and will not be compiled, but Intellij still tries to compile the excluded file.</p>
  <pre><code>sourceSets {
      main {
          java {
          
              exclude '**/Foo.java'
          }
      }
  }
  </code></pre>