title: How do I overwrite a task in gradle kotlin-dsl
body: <p>In Groovy, I overwrite a task like this:</p>
  
  <pre><code>task jar(overwrite: true) {
      ...
  }
  </code></pre>
  
  <p>How do I do that with Kotlin-dsl? I know that I can create a task like this:</p>
  
  <pre><code>tasks {
       val jar by creating {
            ...
       }
  }
  </code></pre>
  
  <p>but I can't find the equivalent way to declare it as overwrite, this leads to an error</p>