title: Gradle srcDirs path
body: <p><a href="https://i.stack.imgur.com/FzrBY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FzrBY.png" alt="enter image description here"></a></p>
  
  <p>Why is the path for sourceSets.generated.java.srcDirs "generated-src/antlr/main" and not "generated-src/antlr"?</p>
  
  <p>From the <a href="https://docs.gradle.org/current/userguide/java_plugin.html" rel="nofollow noreferrer">documentation</a>, it seems that the standard way of declaring a srcDir is to exclude the sourceSet name, for example:</p>
  
  <pre><code>sourceSets {
      main {
          java {
              srcDirs = ['src/java']
          }
          resources {
              srcDirs = ['src/resources']
          }
      }
  }
  </code></pre>
  
  <p>Any help is greatly appreciated.</p>
  
  <p>Cheers.</p>