title: How to add newrelic jar as javaagent in jvm argument in gradle spring boot project
body: <p>I have a spring boot gradle project in which i need to confiugure NewRelic. As of now i have checked i manually setting the javagent in runconfiguration under jvm arguments and it's working. </p>
  
  <p>Now i am looking out the way to configure the it in gradle. I know that we can set jvm argument as follows:-</p>
  
  <pre><code>bootRun {
  jvmArgs = ["-Dlog.directory=.", "-Dlog.media=STDOUT", "-javaagent:$rootDir/gradle/newrelic.jar"]
  }
  </code></pre>
  
  <p>but it;s not picking the newrelic.jar.</p>
  
  <p>Can anybody help me with this. What's wrong i am doing here. Where i need to put downloaded newrelic.jar and newrelic.yml file.</p>
  
  <p>Thanks</p>