Name: newrelic-gradle-plugin
Owner: Allegro Tech
Description: Newrelic Gradle plugin.
Created: 2015-05-18 15:27:57.0
Updated: 2018-02-04 13:19:30.0
Pushed: 2016-05-18 09:34:46.0
Homepage: null
Size: 66
Language: Groovy
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This plugin facilitates the integration of your app with NewRelic.
dscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath group: 'pl.allegro.tech.build', name: 'newrelic-gradle-plugin', version: '0.1.2'
}
y plugin: 'application'
y plugin: 'pl.allegro.tech.build.newrelic-gradle-plugin'
elic {
licenseKey '#1231afa2441251asda' //required - newrelic account key
version '3.25.0' //optional - default '3.25.0'
name 'AwesomeApp' // optional - module name by default
adlew clean distZip
You can also create an own newrelic.yml to configure it as suit you the best. Finally this file should be placed on root classpath of your built application.
To initialize the agent properly is important to run application from “bin” directory. In some cases this is not possible. Then the path to agent directory needs to be set by agentDir option. By default property have ?../lib? value. You can also disable loading agent entirely by loadAgent option.
elic {
//...
agentDir: "/path/to/agent/directory"
loadAgent: true
//...
newrelic-gradle-plugin is published under Apache License 2.0.