title: Gradle: Exclude distribution zip task from assemble
body: <p>I'm using the <a href="https://docs.gradle.org/current/userguide/userguide_single.html#distribution_plugin" rel="noreferrer" title="distribution plugin">distribution plugin</a>. When I run a <em>gradle build</em>, which depends on <em>gradle assemble</em>, both <code>distTar</code> and <code>distZip</code> are triggered, and I end up with both a tarball and a zip file of my distribution. I only need a tarball. running both is time and space consuming (the project distribution is very large). </p>
  
  <p>What would be a clean way to exclude <code>distZip</code> from a high level gradle build? I know I can use <code>gradle build -x distZip</code> but I want to run plain <code>gradle build</code>. I know dependencies can be excluded with <code>build.dependsOn.remove(&lt;name&gt;)</code> but I saw it described as not-recommended. </p>
  
  <p>Thanks.</p>