title: How do I add debug/release specific generated source to Android Gradle?
body: <p>I have the following sourceSet entry.  Each directory contains the autogenerated java source files, which should be compiled for each respective debug/release build.  </p>
  
  <pre><code>sourceSets {
      debug {
          java.srcDirs = [generatedDebugCodeDir]
      }
  
      release {
          java.srcDirs = [generatedReleaseCodeDir]
      }
  }
  </code></pre>
  
  <p>However, I do not see the directories added to the classpath (by using the --debug Gradle flag).  How should I address this?  I tried java.srcDir (no <strong>S</strong>), which is not even recognized.</p>
  
  <p>One workaround I'm considering is just generating the files in the appropriate generated buildConfig dirs.  Hopefully there's no crazy side effect.</p>