Skip to content

Instantly share code, notes, and snippets.

@mrserverless
Created February 8, 2015 23:58
Show Gist options
  • Select an option

  • Save mrserverless/8c9fa8da4cf8ccc95ed7 to your computer and use it in GitHub Desktop.

Select an option

Save mrserverless/8c9fa8da4cf8ccc95ed7 to your computer and use it in GitHub Desktop.
newrelic gradle task
configurations {
newrelic
}
dependencies {
newrelic "com.newrelic.agent.java:newrelic-agent:${newrelicVersion}"
}
task newrelicJar(type: Copy) {
from {
configurations.newrelic
}
into buildDir
rename ("newrelic-agent-${newrelicVersion}.jar", 'newrelic.jar')
}
newrelicJar.shouldRunAfter clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment