fix: fix gitversion mangling name

This commit is contained in:
zaaarf 2023-09-08 21:23:55 +02:00
parent 2f50657733
commit 9c4167821a
No known key found for this signature in database
GPG key ID: 6445A5CD15E5B40C

View file

@ -4,11 +4,10 @@ plugins {
}
archivesBaseName = 'mapper'
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()
}
@ -22,8 +21,4 @@ dependencies {
implementation 'ftbsc:lll:0.4.2'
implementation 'com.google.auto.service:auto-service-annotations:1.1.0'
annotationProcessor 'com.google.auto.service:auto-service:1.1.0'
}
jar {
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}"
}
}