aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author zaaarf <me@zaaarf.foo>2024-05-08 23:26:10 +0200
committer zaaarf <me@zaaarf.foo>2024-05-08 23:26:10 +0200
commit115c4f0470a8e07c80b59062ed7b064b36657654 (patch)
tree1231b3f5cb43b592443f3a48a67d4c95f0189f81
parent7640b4f6b845687d1c9a37dbbb1b72920b1128ac (diff)
fix: use gitversion properlyHEADdev
-rw-r--r--build.gradle6
1 files changed, 2 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 3fda9f1..0a638fb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,12 +6,10 @@ plugins {
alias libs.plugins.checkerFramework
}
-version = gitVersion()
+version = versionDetails().lastTag
group = 'ftbsc'
archivesBaseName = 'bscv'
-def shortVersion = version.split('-')[0].replaceAll(".dirty", "") // necessary when there are no extra commits on tags, and thus no dash
-
project.ext {
deployJarDo = getProjectProperty("deployJar.do", "false")
deployJarTargetDir = getProjectProperty("deployJar.targetDir", ".")
@@ -70,7 +68,7 @@ compileJava { //mappings for lillero-processor
}
jar {
- archiveFileName = "${jar.archiveBaseName.get()}-${shortVersion}.${jar.archiveExtension.get()}"
+ archiveFileName = "${jar.archiveBaseName.get()}-${archiveVersion.get()}.${jar.archiveExtension.get()}"
manifest {
attributes([
"Specification-Title": "bscv",