title: Gradle: common resource dependency for multiple java projects
body: <p>I'm developing a multi-module project with gradle/intellij-idea, and here is the structure of my project home:</p>
  
  <pre><code>project/
    sub-project-1
      /main/resources
    sub-project-2
      /main/resources
    data
      /main/resources
      /test/resources
  </code></pre>
  
  <p>As you can see I have multiple sub-projects (all java), how can I make them depend on some common resources (the "data" project, which contains no code but only resources), as well as their own separate resources?</p>
  
  <p>Also it's best that the intellij-idea can pick up these dependencies with JetGradle automatically (JetGradle do just fine picking up the default gradle java project dependencies within each sub project).</p>
  
  <p>Thanks a lot!</p>