title: Create folder hierarchy in zip - with gradle
body: <p>I'm trying to create a dist zip with gradle. I want to locate my jar at the root dir of the zip. and locating all my dependencies at lib folder . I didn't succeed to do so.</p>
  
  <p>No matter what i tried only one folder is being created(I tried do create some folders).
  And my artifact jar is included in this folder.</p>
  
  <p>I will appreciate any help.</p>
  
  <p>This is my task defintion : </p>
  
  <pre><code>task zip(type: Zip, overwrite:true) {
      from jar.outputs.files
      from configurations.runtime.collect{it}
      into ('lib')
  }    
  </code></pre>