Newrelic Gradle Verify Instrumentation banner
newrelic newrelic

Newrelic Gradle Verify Instrumentation

Development community

Description

Gradle 5.6+ plugin for verifying instrumentation modules for the New Relic Java agent.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

New Relic Open Source community project banner.

gradle-verify-instrumentation-plugin

This plugin provides support for `verifyInstrumentation` DSL in New Relic instrumentation gradle build files. Using this plugin, you can figure out what range of versions for a library are supported by your instrumentation.

:warning: This plugin has a very niche use case for the New Relic Java Agent. It is not intended to be used or modified for any other environment.

Open source license

This project is distributed under the Apache 2 license.

What do you need to make this work?

Required:

  • Gradle, minimum 7.2
  • Java 17

Java Runtime

Most Java agent instrumentation modules are compiled to target Java 8+. However, some modules are compiled to target Java 11 and others require Java 17. The verifier must be run with a minimum Java runtime of 17 because it will fail when trying to verify instrumentation targeting Java 17 when running all modules from the same runtime. Of course, when running individual modules the runtime can be whatever version the given module requires.

Start using the plugin

To use the plugin, update your buildscript dependencies in settings.gradle:

pluginManagement {
    repositories {
      mavenLocal()
      mavenCentral()
      gradlePlu