summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-05-11 15:05:26 +0200
committer zaaarf <me@zaaarf.foo>2024-05-11 15:05:26 +0200
commit9816a595b343da817648807fd468d3b3b8c2999e (patch)
tree7d7383b9a91a7517fb3fce5b1adc630340b73018
parentd313ffbdb7024016e2203c24dbc348dbd96db3aa (diff)
fix: use gitversion properly
-rw-r--r--build.gradle6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 5ddaa88..3897d8d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,10 +1,10 @@
plugins {
- id 'java-library'
- id 'com.palantir.git-version' version '0.13.0'
+ id 'java-library'
+ id 'com.palantir.git-version' version '0.13.0'
}
archivesBaseName = 'mapper'
-version = gitVersion().split('-').getAt(0).replace('dirty', '')
+version = versionDetails().lastTag
java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8