Gradle distZip - adds excluded dependency
<p>My project uses</p>

<pre><code>compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
</code></pre>

<p>I added Google Sheets API to dependencies. Now
<code>gradle dependencies</code> says Google Sheets API uses <code>org.mortbay.jetty:servlet-api:2.5-20081211</code> which I assume to exclude, because classes are loaded from the wrong jar:</p>

<pre><code>compile (group: 'com.google.apis', name: 'google-api-services-sheets', version: 'v4-rev25-1.22.0') {
    exclude(module: 'servlet-api')
}
compile (group: 'com.google.gdata', name: 'core', version: '1.47.1') {
    exclude(module: 'servlet-api')
}
</code></pre>

<p>Now <code>gradle dependencies</code> does not show servlet-api:2.5 to be used anywhere. But after gradle clean distZip I see that archive contains <code>servlet-api-2.5-20081211.jar</code>! How can I exclude it from the build?</p>