title: Gradle Distribution Task Output Files Not at Root of ZIP
body: <p>I created a simple Gradle build that exports the contents of ./src/main/groovy to a zip file. The zip file contains a folder with the exact same name as the zip file. I cannot figure out how to get the files into the root of the zip file using the distribution plugin.</p>
  
  <p>i.e. <code>gradlew clean distZip</code> produces:</p>
  
  <blockquote>
    <p>helloDistribution-1.0.zip -> helloDistribution-1.0 -> files</p>
  </blockquote>
  
  <p>what I would like:</p>
  
  <blockquote>
    <p>helloDistribution-1.0.zip -> files</p>
  </blockquote>
  
  <p>My build.gradle file:</p>
  
  <pre><code>apply plugin: 'groovy'
  apply plugin: 'distribution'
  
  version = '1.0'
  
  distributions {
      main {
          contents {
              from {
                  'src/main/groovy'
              }
          }
      }
  }
  </code></pre>
  
  <p>I have attempted to fix the problem by adding <code>into { 'dir' }</code> but to no avail.</p>