Com.palantir.git-version: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
id "com.palantir.git-version" version "0.12.3" | 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 | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 06:38, 7 November 2020
External
Internal
Overview
Latest Version
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