aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle7
1 files changed, 7 insertions, 0 deletions
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()}"
+}