Git Commit Id Maven Plugin

pl.project13.maven : git-commit-id-plugin

This plugin makes basic repository information available through maven resources. This can be used to display "what version is this?" or "who has deployed this and when, from which branch?" information at runtime, making it easy to find things like "oh, that isn't deployed yet, I'll test it tomorrow" and making both testers and developers life easier. See https://github.com/git-commit-id/git-commit-id-maven-plugin

[Website] ·
1 usages
· 1.3k stars

Add dependency in Maven / Gradle

<dependency>
    <groupId>pl.project13.maven</groupId>
    <artifactId>git-commit-id-plugin</artifactId>
    <version>4.9.10</version>
</dependency>

How to add dependency in a project

  1. Add dependency to a Maven project
  2. Add dependency to a Gradle project
  3. Add dependency to a SBT Scala project
  4. Add dependency to a Grape project

1. Add dependency to a Maven project

Maven: Add the pl.project13.maven:git-commit-id-plugin library to the dependencies element of your pom.xml file:

<dependencies>
<dependency>
  <groupId>pl.project13.maven</groupId>
  <artifactId>git-commit-id-plugin</artifactId>
  <version>4.9.10</version>
</dependency>
</dependencies>

To install pl.project13.maven:git-commit-id-plugin library use the following command:

mvn install

2. Add dependency to a Gradle project

Gradle Groovy DSL: Add the pl.project13.maven:git-commit-id-plugin library to the dependencies section of your build.gradle file:

dependencies {
implementation 'pl.project13.maven:git-commit-id-plugin:4.9.10'
}

Gradle Kotlin DSL: Add the pl.project13.maven:git-commit-id-plugin library to the dependencies section of your build.gradle.kts file:

dependencies {
implementation("pl.project13.maven:git-commit-id-plugin:4.9.10")
}

3. Add dependency to a SBT Scala project

Scala: Add the pl.project13.maven:git-commit-id-plugin library to your build.sbt file:

libraryDependencies += "pl.project13.maven" % "git-commit-id-plugin" % "4.9.10"

4. Add dependency to a Grape project

Grape: Add an annotation pl.project13.maven:git-commit-id-plugin library to your groovy script file:

@Grapes(
    @Grab('pl.project13.maven:git-commit-id-plugin:4.9.10')
)

Compile Dependencies (0)

Group / Artifact Usage

Provided Dependencies (1)

Test Dependencies (8)

Recommended for You

More from Group