Com.palantir.git-version

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

Latest Version

https://github.com/palantir/gradle-git-version/tags

Configuration

plugins {
  id "com.palantir.git-version" version "0.12.3"
}

def gitVersion = versionDetails()
gitVersion.lastTag
gitVersion.commitDistance
gitVersion.gitHash
gitVersion.gitHashFull // full 40-character Git commit hash
gitVersion.branchName // is null if the repository in detached HEAD mode
gitVersion.isCleanTag