title: Avoid duplication between similar Gradle tasks?
body: <p>It there any way to avoid duplication in configuration between two similar tasks of the same type?</p>
  
  <p>For example, I'd like to create a <code>debugSomething</code> task, with the same configuration as <code>runSomething</code> below but with the addition of a remote debugger argument to the jvmArgs:</p>
  
  <pre><code>task runSomething(dependsOn: jar, type: JavaExec, group: "Run") {
      jvmArgs "-Xmx1024m", "-XX:MaxPermSize=128m"
      main = "com.some.Main"
      classpath = sourceSets.main.runtimeClasspath
  }
  </code></pre>