title: gradle - deploy sub-project jar in parent-project war for eclipse
body: <p>I am using gradle. I have a war project that depends on a java project. The java sub-project, named "shared", generates a jar that is needed by the war project. This works fine for the standard gradle jettyRunWar. My problem is that the eclipse project generated by gradle does not work. The sub-project is correctly listed as a project dependency, but I get ClassNotFoundExeptions on the sub-project classes. I can't figure out why gradle isn't including the sub-project's classes folder in the war deployment.</p>
  
  <p>from parent/build.gradle:</p>
  
  <pre><code>  compile project(path: ':shared', configuration: 'jarConfig')
  </code></pre>
  
  <p>from shared/build.gradle:</p>
  
  <pre><code>configurations 
  {
    jarConfig
  } 
  
  artifacts
  {
    jarConfig jar
  }
  </code></pre>