From 5f3a57d7982b95ecc73362e1daa2d688f36a182e Mon Sep 17 00:00:00 2001 From: zaaarf Date: Thu, 2 Mar 2023 00:57:56 +0100 Subject: [PATCH] chore: added gitversion --- build.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index e00f3f1..3fe25d6 100644 --- a/build.gradle +++ b/build.gradle @@ -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()}" +}