title: Gradle replacing Maven assembly plugin
body: <p>I'm fairly new to Gradle, and trying to port an existing Maven pom.xml that makes extensive use of maven-assembly-plugin to create various zip files.  </p>
  
  <p>In the example below, I'm getting files from various subdirectories (with particular extensions), and then mapping them in a flat structure to a ZIP file.</p>
  
  <pre><code>task batchZip(type: Zip) {
    from fileTree('src/main/sas') {
      include('**/*.sas')
      include('**/*.ds')
    }.files
  }
  </code></pre>
  
  <p>This puts all the files in the root of the zip.  What I ideally need though, is for the files to live under a particular path in the root of the zip, e.g. /shared/sas.</p>
  
  <p>Is there a way to do this without first copying all the files to a local directory and then zipping that up?</p>