From 115c4f0470a8e07c80b59062ed7b064b36657654 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Wed, 8 May 2024 23:26:10 +0200 Subject: [PATCH] fix: use gitversion properly --- build.gradle | 6 ++---- 1 file 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",