aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author alemi <me@alemi.dev>2023-03-07 13:16:13 +0100
committer alemi <me@alemi.dev>2023-03-07 13:16:13 +0100
commite102e85f9b4253206926f8ba568c59862e18c57a (patch)
treed07da876ae7cc8c0c4064179325fbf2465c7a64a
parent62df0cf4ba6661c178e6f5901b9514953459edca (diff)
fix: never put .dirty in jar name
when building right on a tag but with a dirty project, the version would result something like "X.X.X.dirty", without any dash because there are no extra commits
-rw-r--r--build.gradle2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 2c29715..ba78b16 100644
--- a/build.gradle
+++ b/build.gradle
@@ -10,7 +10,7 @@ version = gitVersion()
group = 'ftbsc'
archivesBaseName = 'bscv'
-def shortVersion = version.split('-')[0]
+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")