summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-09-08 20:36:42 +0200
committer zaaarf <zaaarf@proton.me>2023-09-08 20:36:42 +0200
commit1b59c930c212eb2e9eaf9f5fb325f148f5dd8155 (patch)
treeefb32412af67bd3de6fe90b9fdc837df31cd79c5 /build.gradle
parent2201a9fe81881c2e5e84ae938ec4783921bffbce (diff)
fix: fixed gitversion mangling name
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle7
1 files changed, 3 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 0786d67..17b9bfe 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,11 +4,10 @@ plugins {
}
archivesBaseName = 'lll'
-version = gitVersion()
+version = gitVersion().split('-').getAt(0).replace('dirty', '')
java {
- sourceCompatibility = JavaVersion.VERSION_1_8
- targetCompatibility = JavaVersion.VERSION_1_8
+ sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
withJavadocJar()
}
@@ -24,5 +23,5 @@ dependencies {
}
jar {
- archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}"
+ archiveFileName = "${jar.archiveBaseName.get()}-${project.version}.${jar.archiveExtension.get()}"
}