title: Running an Azure Pipeline Gradle task locally
body: <p>I'm trying to debug a Gradle task in an Azure Pipeline by running it locally. The YAML definition of the task is:</p>
  
  <pre><code>- task: Gradle@2
    displayName: 'Test Project'
    inputs:
      gradleWrapperFile: 'gradlew'
      gradleOptions: '-Xmx7000m'
      sonarQubeRunAnalysis: true
      sonarQubeGradlePluginVersion: 2.6.2
      testRunTitle: $(DISPLAY_NAME)
      codeCoverageToolOption: JaCoCo
      publishJUnitResults: true
      testResultsFiles: '**/build/test-results/test/TEST-*.xml'
      tasks: "test -Dtest.profile=unit --parallel"
  </code></pre>
  
  <p>I'm trying to figure out the equivalent local command. I've got as far as</p>
  
  <pre><code>./gradlew test -DcodeCoverageToolOption=JaCoCo -Dtest.profile=unit --parallel
  </code></pre>
  
  <p>However, I'm not sure how to pass the other arguments, e.g. <code>codeCoverageToolOption: JaCoCo</code></p>