title: How to include resources of a sub project in parent project?
body: <p>I have a multi-project gradle build containing 3 projects: <code>A</code>, <code>B</code> and <code>C</code>.  </p>
  
  <p><code>A</code> and <code>B</code> depends on <code>C</code>.<br>
  <code>C</code> has a file <code>myconfig.xml</code> in its <code>resources</code> folder that I would like to include as resource in war generated for <code>A</code> and <code>B</code>.</p>
  
  <pre><code>A -- project type - WAR
    -- depends on - C
  B -- project type - WAR
    -- depends on - C
  C -- project type - JAVA
  \_ src\main\resources
   \_ myconfig.xml
  </code></pre>
  
  <p>However, simply having C as a dependency for A &amp; B doesnt seem to do that. The <code>myconfig.xml</code> file is <em>not</em> present in the war file's <code>WBE-INF\classes</code> folder.  It is indeed present in <code>C.jar</code> file but that is not where its needed.</p>
  
  <p>How do i share the resources folder of <code>C</code> such that its in the war file of <code>A</code> and <code>B</code>?</p>