From e102e85f9b4253206926f8ba568c59862e18c57a Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 7 Mar 2023 13:16:13 +0100 Subject: [PATCH] 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 --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")