Com.palantir.git-version: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
* [[Gradle_Plugin_Concepts#External_Plugins|Gradle Plugin Concepts | External Plugins]]
* [[Gradle_Plugin_Concepts#External_Plugins|Gradle Plugin Concepts | External Plugins]]
=Overview=
=Overview=
=Latest Version=
{{External|https://github.com/palantir/gradle-git-version/tags}}
=Configuration=
=Configuration=
<syntaxhighlight lang='groovy'>
<syntaxhighlight lang='groovy'>
plugins {
plugins {
   id "com.palantir.docker" version "0.25.0"
   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

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