fix: use gitversion properly

This commit is contained in:
zaaarf 2024-05-11 15:08:46 +02:00
parent d98eab7e7d
commit 9cc6ed16d3
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -4,10 +4,10 @@ plugins {
}
archivesBaseName = 'processor'
version = gitVersion()
version = versionDetails().lastTag
java {
sourceCompatibility = targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
@ -23,7 +23,3 @@ dependencies {
implementation 'ftbsc:lll:0.5.0'
implementation 'ftbsc.lll:mapper:0.3.0'
}
jar {
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}"
}