Skip to content

Commit

Permalink
Merge pull request #98 from tudortimi/configure-version-from-git
Browse files Browse the repository at this point in the history
Configure version from Git
  • Loading branch information
tudortimi authored Jan 18, 2023
2 parents 26a8011 + 49d5050 commit 2745f8d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id("groovy")
id("maven-publish")
id("com.gradle.plugin-publish") version "0.20.0"
id("com.palantir.git-version") version "0.13.0"
}

pluginBundle {
Expand All @@ -14,7 +15,9 @@ pluginBundle {
apply(from = "$rootDir/gradle/functional-test.gradle")

group = "com.verificationgentleman.gradle"
version = "0.2.1"

val gitVersion: groovy.lang.Closure<String> by extra
version = gitVersion()

gradlePlugin {
plugins {
Expand Down

0 comments on commit 2745f8d

Please sign in to comment.