fix: fixed gitversion mangling name

This commit is contained in:
zaaarf 2023-09-08 20:38:10 +02:00
parent 2b1bf9eac4
commit 0d097dcb2e
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

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