chore: added gitversion

This commit is contained in:
zaaarf 2023-03-02 00:50:02 +01:00
parent 9a355f33af
commit 1becebd024
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -1,4 +1,10 @@
apply plugin: 'java-library'
plugins {
id 'java-library'
id 'com.palantir.git-version' version '0.13.0'
}
archivesBaseName = 'lll'
version = gitVersion()
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
@ -11,3 +17,7 @@ dependencies {
implementation 'org.ow2.asm:asm-util:9.4'
implementation 'org.apache.logging.log4j:log4j-api:2.15.0'
}
jar {
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}"
}