fix: use gitversion properly

This commit is contained in:
zaaarf 2024-05-11 15:06:37 +02:00
parent 9dc366f07f
commit 81ec0e4140
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -1,11 +1,11 @@
plugins {
id 'java'
id 'com.palantir.git-version' version '0.13.0'
id 'java'
id 'com.palantir.git-version' version '0.13.0'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
archivesBaseName = 'mapping-writer'
version = gitVersion().split('-').getAt(0).replace('dirty', '')
version = versionDetails().lastTag
java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8