title: Gradle: custom task with jvm arguments for Spring Boot
body: <p>Trying to create a small custom gradle task for Spring Boot that originally looks like this: </p>
  
  <p><code>gradle bootRun --debug-jvm</code></p>
  
  <p>The task should look like this: <code>gradle debugRun</code></p>
  
  <p>I tried this but it does not work:</p>
  
  <pre><code>task debugRun(dependsOn: 'bootRun') &lt;&lt; {
      applicationDefaultJvmArgs = ['--debug-jvm']
  }
  </code></pre>
  
  <p>How can I pass this debug-flag to the bootRun task?</p>