title: Gradle plugin, how to hook Jacoco agent to jvm
body: <p>Hello there Gradle gurus!
  I'm seeking for your mighty experience and knowledge :)</p>
  
  <p>I have a Gradle plugin that hooks a Jacoco agent to the jvm. Currently my code looks like this:</p>
  
  <pre><code>Task t = project.allTasks.getByPath(project.getName+":"+"test");
  t.jvmArgs = ["-javaagent:"+jacocoAgentJar+"=destfile=" + coverageResultFile.getCanonicalPath()];
  </code></pre>
  
  <p>This is working fine but since dynamic properties are deprecated I want to somehow get rid of them. However... changing the code to <code>t.ext.jvmArgs = ["-javaagent:"+jacocoAgentJar+"=destfile=" + coverageResultFile.getCanonicalPath()];</code> doesnt work.</p>
  
  <p>Could someone please explain to me how am I supposed to hook the Jacoco agent to the jvm withought using this dynamic property?</p>
  
  <p>Thanks</p>