Skip to content

hesy007/newrelic-gradle-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newrelic-gradle-plugin

This plugin facilitates the integration of your app with [NewRelic] (http://newrelic.com/).

Basic usage

###Configuration:

buildscript {
    repositories {
         maven {
            url "https://plugins.gradle.org/m2/"
         }
    }
    dependencies {
        classpath group: 'pl.allegro.tech.build', name: 'newrelic-gradle-plugin', version: '0.1.0'
    }
}
apply plugin: 'application'
apply plugin: 'pl.allegro.tech.build.newrelic-gradle-plugin'

newrelic {
    licenseKey '#1231afa2441251asda' //required - newrelic account key
    version '3.14.0' //optional - default '3.14.0'
    name 'AwesomeApp' // optional - module name by default
}

Use:

./gradlew clean distZip

Advanced Usage

You can also create an own [newrelic.yml] (https://docs.newrelic.com/docs/agents/java-agent/configuration/java-agent-config-file-template) to configure it as suit you the best. Finally this file should be placed on root classpath of your built application.

Requirements

  • newrelic-gradle-plugin must be applied after application plugin.
  • environment must be pointed by setting -Dnewrelic.environment= on the Java startup command. By default the plugin contains configuration for two environments: "prod" and "test".

License

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

About

Newrelic Gradle plugin.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 100.0%