fix: fixed gitversion mangling name

This commit is contained in:
zaaarf 2023-09-08 20:36:42 +02:00
parent 2201a9fe81
commit 1b59c930c2
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C

View file

@ -4,11 +4,10 @@ plugins {
} }
archivesBaseName = 'lll' archivesBaseName = 'lll'
version = gitVersion() version = gitVersion().split('-').getAt(0).replace('dirty', '')
java { java {
sourceCompatibility = JavaVersion.VERSION_1_8 sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar() withSourcesJar()
withJavadocJar() withJavadocJar()
} }
@ -24,5 +23,5 @@ dependencies {
} }
jar { jar {
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" archiveFileName = "${jar.archiveBaseName.get()}-${project.version}.${jar.archiveExtension.get()}"
} }