summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-03-02 00:50:02 +0100
committer zaaarf <zaaarf@proton.me>2023-03-02 00:50:02 +0100
commit1becebd0241d92c78a27bad2479341f4556724ae (patch)
tree1575eba38bbb2b5c2e25a36835ebee106e7450b3 /build.gradle
parent9a355f33af77ea22776a943c6d12058cc61cce2a (diff)
chore: added gitversion0.3.0
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle12
1 files changed, 11 insertions, 1 deletions
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