title: How can I disable a task in build.gradle
body: <p>I want to skip some tasks when I run <code>gradle build</code>. I know that it can be done from command line with <code>-x</code>:</p>
  <pre class="lang-sh prettyprint-override"><code>gradle build -x unwantedTask 
  </code></pre>
  <p>My question is how can the same result be achieved in the build.gradle?</p>