allegro/newrelic-gradle-plugin

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

newrelic-gradle-plugin

This plugin facilitates the integration of your app with NewRelic.

Basic usage
Configuration:
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

Use:
adlew clean distZip
Advanced Usage
Agent configuration

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.

Agent directory

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
//...

Requirements
License

newrelic-gradle-plugin is published under Apache License 2.0.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.