Coder Social home page Coder Social logo

isabella232 / newrelic-gradle-compatibility-doc-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from newrelic/newrelic-gradle-compatibility-doc-plugin

0.0 0.0 0.0 123 KB

Gradle plugin for generating compatibility documents (lists of supported software versions) from instrumentation modules.

License: Apache License 2.0

Java 31.10% Groovy 13.43% Kotlin 8.71% FreeMarker 46.75%

newrelic-gradle-compatibility-doc-plugin's Introduction

Community Project header

gradle-compatibility-doc-plugin

This plugin provides support for generateCompatibilitySite DSL in your gradle build files. Using maven dependency strings, you can quickly define what ranges of target libraries are supported by the agent's builtin instrumentation.

โš ๏ธ 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 5.6

Start using the plugin

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

pluginManagement {
    repositories {
      mavenCentral()
      gradlePluginPortal()
    }
  }

And reference it in build.gradle:

buildscript {
    dependencies {
        classpath "com.newrelic.agent.java:gradle-compatibility-doc-plugin:1.1"
    }
}

apply plugin "com.newrelic.gradle-compatibility-doc-plugin"

Or simply:

 plugins {
   id("com.newrelic.gradle-compatibility-doc-plugin") version "1.1"
 }

Note For instrumentation bundled with the New Relic Java agent, this is already configured and these steps are not required.

Configuring the plugin

site {
    title 'Anorm'
    type 'Datastore'
    versionOverride '[1.0,)'
}

Note: versionOverride is optional, otherwise the versions are picked up from the verifyInstrumentation block in the instrumentation gradle file.

Type options:

  • 'Datastore'
  • 'Framework'
  • 'Appserver'
  • 'Messaging'
  • 'Other'

Running the plugin

Run the plugin with the generateCompatibilitySite task.

To generate an html page including all instrumentation:

.../java_agent/$ ./gradlew generateCompatibilitySite

Development

To test the plugin locally, first publish it to your local repository of Maven.

After cloning, run the following command in the root of this project:

./gradlew publishToMavenLocal

Then update your buildscript dependencies in settings.gradle:

pluginManagement {
    repositories {
      mavenLocal()
      mavenCentral()
      gradlePluginPortal()
    }
  }

This should pick up your local version of the plugin.

Support

New Relic has open-sourced this project. This project is provided AS-IS WITHOUT WARRANTY OR DEDICATED SUPPORT. Report issues and contributions to the project here on GitHub.

We encourage you to bring your experiences and questions to the Explorers Hub where our community members collaborate on solutions and new ideas.

Community

New Relic hosts and moderates an online forum where customers can interact with New Relic employees as well as other customers to get help and share best practices. Like all official New Relic open source projects, there's a related Community topic in the New Relic Explorers Hub. You can find this project's topic/threads here:

https://discuss.newrelic.com/c/support-products-agents/java-agent

Issues / enhancement requests

Issues and enhancement requests can be submitted in the issues tab of this repository. Please search for and review the existing open issues before submitting a new issue.

Contributing

We encourage your contributions to improve this project! Keep in mind when you submit your pull request, you'll need to sign the CLA via the click-through using CLA-Assistant. You only have to sign the CLA one time per project. If you have any questions, or to execute our corporate CLA, required if your contribution is on behalf of a company, please drop us an email at [email protected].

newrelic-gradle-compatibility-doc-plugin's People

Contributors

breedx-nr avatar jasonjkeller avatar melissaklein24 avatar xixiapdx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.