From 1becebd0241d92c78a27bad2479341f4556724ae Mon Sep 17 00:00:00 2001 From: zaaarf Date: Thu, 2 Mar 2023 00:50:02 +0100 Subject: [PATCH] chore: added gitversion --- build.gradle | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ee02717..0ef9c64 100644 --- a/build.gradle +++ b/build.gradle @@ -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()}" +} \ No newline at end of file