title: Extract zip file dependencies into separate directories with Gradle
body: <p>I want to extract multiple zip files that are dependencies for my build.</p>
  
  <p>Right now I have:</p>
  
  <pre><code>project.tasks.create(name: 'extractExternalNativeDependencies', type: Copy) {
          from {
              configurations.externalNative.collect {
                  zipTree(it)
              }
          }
          into project.file(".externalNativeDependencies")
      }
  </code></pre>
  
  <p>This extracts all the dependencies into the same folder. I want each zip to be extracted into it's own folder instead.</p>
  
  <p>I've seen <a href="https://stackoverflow.com/questions/18490986/gradle-extract-multiple-dependencies-each-to-a-different-directory">Gradle extract multiple dependencies each to a different directory</a> however that "working solution" doesn't really work. It fails if the build is run twice without cleaning and really it shouldn't run if the source zips are up-to-date.</p>