title: How to set resourceDirs in gradle IDEA module?
body: <p>I have a separate resource folder which I want to add to IDEA classpath. The reason I don't use main/resources is I need to have the folder outside of JAR to allow XML config files edition. </p>
  
  <p>This is what works in IDEA</p>
  
  <pre><code>apply plugin: 'idea'
  idea {
      module {
          resourceDirs += file('src/dist/etc')
     }
  }
  </code></pre>
  
  <p>When I press "reimport from Gradle" the folder is mapped as Resource Folder.
  So IDEA understands resourceDirs property.</p>
  
  <p>But Gradle 2.2 fails:</p>
  
  <pre><code>Could not find property 'resourceDirs' on org.gradle.plugins.ide.idea.model.IdeaModule_Decorated@329c1075.
  </code></pre>
  
  <p>How can I set a resource dir in IDEA from Gradle?</p>