title: Assemble all gradle build artifacts into a single directory
body: <p>We're moving from Maven to Gradle and are struggling with one thing. 
  We have a multi-project Gradle-project based on the POMs from Maven.
  Most of it works fine, but we cannot find out a way to collect the WAR-files and ZIP-files which are the result from building the sub-projects. Each sub-project represents a micro service.
  We have found (also on Stackoverflow) ways to collect all of the jars and third party libs into a directory. However, we are looking for a way to collect the resources and libraries per micro service.
  In Maven we did something like this:</p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0.0&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;copy&lt;/id&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;copy&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;outputDirectory&gt;Publish/&lt;/outputDirectory&gt;
                          &lt;artifactItems&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;....&lt;/groupId&gt;
                                  &lt;artifactId&gt;...&lt;/artifactId&gt;
                                  &lt;version&gt;${project.version}&lt;/version&gt;
                                  &lt;type&gt;zip&lt;/type&gt;
                              &lt;/artifactItem&gt;
                              &lt;artifactItem&gt;
                                  &lt;groupId&gt;....&lt;/groupId&gt;
                                  &lt;artifactId&gt;...&lt;/artifactId&gt;
                                  &lt;version&gt;${project.version}&lt;/version&gt;
                                  &lt;type&gt;war&lt;/type&gt;
                              &lt;/artifactItem&gt;
  </code></pre>
  
  <p>I would like to end up with a directory where I can find:</p>
  
  <pre><code>project1.war
  project2.war
  project3.zip
  etc.
  </code></pre>