title: How to pack files inside zip dependency in Gradle
body: <p>I have a Gradle project with dependencies that are downloaded from a Nexus repository.
  One of this dependency I want to get the jar and a zip file.</p>
  
  <p>The jar ("name-version.jar") is easily available through:</p>
  
  <pre><code>dependency {
      compile 'group:name:version'
  }
  </code></pre>
  
  <p>But the other artifact I want to be available has name as follows:
  "name-version-config.zip"</p>
  
  <p><strong>How can I get this artifact from the repository?</strong>
  I need this artifact to get some files inside it to use during my package/distribution task.</p>
  
  <p>I already tried to create a new configuration and configure like this:</p>
  
  <pre><code>configurations {
      zipConfig
  }
  
  dependencies {
      ...
      compile group: &lt;group&gt;, name: &lt;name&gt;, version: &lt;version&gt;
      zipConfig group: &lt;group&gt;, name: &lt;name&gt;, version: &lt;version&gt; + '-config', ext: 'zip'
  }
  </code></pre>
  
  <p>But this fails because gradle will try to find the right filename using the wrong path: "group/name/version-config/name-version-config.zip" and I need it to search the file in "group/name/version/name-version-config.zip"</p>