GithubHelp home page GithubHelp logo

isabella232 / common-custom-user-data-maven-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gradle/common-custom-user-data-maven-extension

0.0 0.0 0.0 575 KB

Maven extension that enhances published build scans by adding a set of tags, links and custom values that have proven to be useful for many projects building with Gradle Enterprise.

Home Page: https://gradle.com/enterprise

License: Apache License 2.0

Java 98.35% Groovy 1.65%

common-custom-user-data-maven-extension's Introduction

This repository is maintained by the Gradle Enterprise Solutions team, as one of several publicly available repositories:

Common Custom User Data Maven Extension

Verify Build Maven Central Revved up by Gradle Enterprise

The Common Custom User Data Maven extension for Gradle Enterprise enhances published build scans by adding a set of tags, links and custom values that have proven to be useful for many projects building with Gradle Enterprise.

You can leverage this extension for your project in one of two ways:

  1. Apply the published extension directly in your .mvn/extensions.xml and immediately benefit from enhanced build scans
  2. Copy this repository and develop a customized version of the extension to standardize Gradle Enterprise usage across multiple projects

Applying the published extension

The Common Custom User Data Maven extension is available in Maven Central. This extension requires the Gradle Enterprise Maven extension to also be applied in your build in order to have an effect.

In order for the Common Custom User Data Maven extension to become active, you need to register it in the .mvn/extensions.xml file in your root project. The extensions.xml file is the same file where you have already declared the Gradle Enterprise Maven extension.

See here for an example.

Version compatibility

This table details the version compatibility of the Common Custom User Data Maven extension with the Gradle Enterprise Maven extension.

Common Custom User Data Maven extension versions Gradle Enterprise Maven extension versions
1.8+ 1.11+
1.7 - 1.7.3 1.10.1+
1.3 - 1.6 1.6.5+
1.0 - 1.2 1.0+

Captured data

The additional tags, links and custom values captured by this extension include:

  • A tag representing the operating system
  • A tag representing how the build was invoked, be that from your IDE (IDEA, Eclipse) or from the command-line
  • A tag representing builds run on CI, together with a set of tags, links and custom values specific to the CI server running the build
  • For Git repositories, information on the commit id, branch name, status, and whether the checkout is dirty or not

See CustomBuildScanEnhancements.java for details on what data is captured and under which conditions.

Capturing additional tags, links and values in your build scans

You can apply additional configuration beyond what is contributed by the Common Custom User Data Maven extension by default. The additional configuration happens in a specific Groovy script. This is a good intermediate step before creating your own extension.

The Common Custom User Data Maven extension checks for a .mvn/gradle-enterprise-custom-user-data.groovy Groovy script in your root project. If the file exists, it evaluates the script with the following bindings:

See here for an example.

Developing a customized version of the extension

For more flexibility, we recommend creating a copy of this repository so that you may develop a customized version of the extension and publish it internally for your projects to consume.

This approach has a number of benefits:

  • Tailor the build scan enhancements to exactly the set of tags, links and custom values you require
  • Standardize the configuration for connecting to Gradle Enterprise and the remote build cache in your organization, removing the need for each project to specify this configuration

If your customized extension provides all required Gradle Enterprise configuration, then a consumer project will get all the benefits of Gradle Enterprise simply by applying the extension. The project sources provide a good template to get started with your own extension.

Refer to the Javadoc for more details on the key types available for use.

Changelog

Refer to the release history to see detailed changes on the versions.

Learn more

Visit our website to learn more about Gradle Enterprise.

License

The Gradle Enterprise Common Custom User Data Maven extension is open-source software released under the Apache 2.0 License.

common-custom-user-data-maven-extension's People

Contributors

alextu avatar bigdaz avatar bot-githubaction avatar bot-teamcity avatar britter avatar clayburn avatar dependabot[bot] avatar etiennestuder avatar facewindu avatar guylabs avatar jonnybbb avatar jprinet avatar jthurne avatar marcphilipp avatar pio-kol avatar runningcode avatar snoopcheri avatar thedancercodes 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.