chore: added gitversion

This commit is contained in:
zaaarf 2023-03-02 00:57:56 +01:00
parent ef1e358a40
commit 5f3a57d798
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -1,7 +1,11 @@
plugins {
id 'java-library'
id 'com.palantir.git-version' version '0.13.0'
}
archivesBaseName = 'loader'
version = gitVersion()
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
repositories {
@ -18,3 +22,6 @@ dependencies {
implementation 'ftbsc:lll:0.3.0'
}
jar {
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}"
}