title: Force task execution in Gradle
body: <p>A certain amount of Gradle tasks I wrote, don't need any in- or output. Because of that, these tasks always get the status <code>UP-TO-DATE</code> when I call them. An example: </p>
  
  <pre><code>task backupFile(type: Copy) &lt;&lt; {
      //Both parameters are read from the gradle.properties file
      from file(adjusting_file.replaceAll("\"", "")) 
      into file(backupDestinationDirectory + "/main/")
  
      println "[INFO] Main file backed up"
  }
  </code></pre>
  
  <p>Which results in the following output:</p>
  
  <pre><code>:gradle backupFile
  :backupFile UP-TO-DATE
  </code></pre>
  
  <hr>
  
  <p>Is there a way to <strong>force a(ny) task to execute, regardless of anything</strong>? 
  If there is, is it also possible to <strong>toggle task execution</strong> (e.g. telling the build script which tasks to run and which tasks to ignore)?</p>
  
  <p>I can't omit the <code>&lt;&lt;</code> tags, as that would make the tasks to <em>always</em> execute, which isn't what I desire.</p>
  
  <p>Many thanks in advance for your input.</p>