scm-metadata-maven-plugin

Maven plugin to inject metadata about SCM into the Maven build properties.

License

License

Categories

Categories

Maven Build Tools Data
GroupId

GroupId

zone.gryphon.maven.plugins
ArtifactId

ArtifactId

scm-metadata-maven-plugin
Last Version

Last Version

1.8
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

scm-metadata-maven-plugin
Maven plugin to inject metadata about SCM into the Maven build properties.
Project URL

Project URL

https://gryphon-zone.github.io/scm-metadata-maven-plugin
Project Organization

Project Organization

Gryphon Zone
Source Code Management

Source Code Management

https://github.com/gryphon-zone/scm-metadata-maven-plugin

Download scm-metadata-maven-plugin

How to add to project

<plugin>
    <groupId>zone.gryphon.maven.plugins</groupId>
    <artifactId>scm-metadata-maven-plugin</artifactId>
    <version>1.8</version>
</plugin>

Dependencies

compile (1)

Group / Artifact Type Version
org.eclipse.jgit : org.eclipse.jgit jar 5.5.1.201910021850-r

provided (5)

Group / Artifact Type Version
org.apache.maven : maven-core jar 3.3.3
org.apache.maven : maven-model jar 3.3.3
org.apache.maven : maven-plugin-api jar 3.3.3
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0
org.projectlombok : lombok jar

test (8)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar
ch.qos.logback : logback-core jar
commons-io : commons-io jar 2.6
junit : junit jar
org.apache.maven : maven-compat jar 3.3.3
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0
org.assertj : assertj-core jar 2.9.1
org.slf4j : slf4j-api jar

Project Modules

There are no modules declared in this project.

scm-metadata-maven-plugin

License License Maven Central Build Status

Maven plugin to inject metadata about the SCM in use for the project into your build as Maven properties, for re-use by other plugins.

Similar in spirit to the Buildnumber Maven Plugin, with the following key differences:

  1. Focus specifically on SCM metadata
  2. Richer set of metadata included
  3. Greater control over injected properties

See the documentation for details.

SCM support

Currently supported SCM implementations:

  • git

PRs adding support for additional SCM providers are welcome, the eventual goal is to support all of the most commonly used SCMs supported by Maven itself

Developer Information

Project Requirements

Building the plugin requires a Java 9+ JDK (although the project is compiled against the Java 7 SDK).

Building

To build the project:

mvn clean install

To build the plugin documentation:

mvn clean site

For compatibility with github-pages, the documentation is deployed into the docs folder. To build the documentation and deploy it into this folder, run

mvn clean site-deploy

IDE integration

This project utilizes Project Lombok, so ensure you add the appropriate plugins to your IDE.

License

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
zone.gryphon.maven.plugins

Gryphon Zone

Versions

Version
1.8
1.7
1.6
1.5
1.4
1.1
1,3
1.0