title: How to cherry pick ZIP contents with Gradle Distribution plugin?
body: <p>My Gradle build currently produces the following directory structure under a <code>build</code> dir in my project root:</p>
  
  <pre><code>myapp/
      src/
      build.gradle
      build/
          docs/
              groovydoc/* (all Groovydocs)
          libs/
              myapp-SNAPSHOT.jar
              myapp-SNAPSHOT-sources.jar
          reports/
              codenarc/
                  main.html
          test-results/* (JUnit test results)
  </code></pre>
  
  <p>I would like to add the <a href="http://www.gradle.org/docs/current/userguide/distribution_plugin.html" rel="noreferrer"><code>distribution</code> plugin</a> (or anything that accomplishes my goals, really) to have Gradle produce a ZIP file with the following directory structure:</p>
  
  <pre><code>myapp-SNAPSHOT-buildreport.zip/
      tests/
          (JUnit tests from build/test-results above)
      reports/
          main.html (CodeNarc report from build/reports/codenarc above)
      api/
          (Groovydocs from build/docs above)
      source/
          myapp-SNAPSHOT-sources.jar (from build/libs above)
      bin/
          myapp-SNAPSHOT.jar (from build/libs above)
  </code></pre>
  
  <p>After reading the plugin's documentation, I can't tell how to configure it to suit these needs. Its obvious that I need to run <code>gradle distZip</code>, but as to how to actually configure it to produce the desired directory structure, it doesn't seem to provide any documentation/examples. Any ideas?</p>
  
  <p><strong>Note</strong>: The JAR's version is obviously <code>SNAPSHOT</code>, and is passed into the Gradle build with a <code>-Pversion=SNAPSHOT</code> command-line argument.</p>