title: How to specify IntelliJ Exclude Directories using Gradle?
body: <p>Using IntelliJ to open a <code>build.gradle</code> file, in the "Import Project from Gradle" window, the "Excluded Roots" are pre-populated with the <code>.gradle</code> and <code>build</code> directories. </p>
  
  <p>How do I specify what directories should be excluded (or not excluded) in the <code>build.gradle</code> file? </p>
  
  <p>Specifically I am using a protocol buffer plugin that places generated sources in the <code>/build/generated-sources/</code> directory. If the <code>build</code> directory is excluded then my source class do not see the generated classes. </p>
  
  <p><em><strong>Details:</strong> IntelliJ 12.1.3, Gradle 1.4</em></p>