title: gradle subProject configuration dependencies not being add to war
body: <p>I have a main project that depends on 2 subProjects. All 3 projects have a custom configuration called server.</p>
  
  <p>When I have the following war task, only the dependencies in the main project configuration.server are being added to the war. </p>
  
  <pre><code>task fatWar(type: War) {
      archiveName = "arms-fat.war"
      classpath configurations.server
      classpath configurations.compile
  }
  </code></pre>
  
  <p>How do I add the subProject server configuration dependencies to the war?</p>
  
  <p>EDIT:</p>
  
  <p>Here are some snippets of my build files for context.</p>
  
  <p>rootProject build.gradle</p>
  
  <pre><code>configurations {
      server
  }
  dependencies {
      server 'org.glassfish.jersey.media:jersey-media-multipart:2.22.2'
      ...
  }
  task fatWar(type: War) {
      archiveName = "arms-fat.war"
      classpath configurations.server
      classpath configurations.compile
  }
  </code></pre>
  
  <p>subProject build.gradle</p>
  
  <pre><code>configurations {
      server
  }
  dependencies {
      server 'mysql:mysql-connector-java:5.1.38'
      ...
  }
  </code></pre>
  
  <p>When I run the fatWar task, the mysql-connector.jar, among others are not bundled in the war</p>