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
This commit is contained in:
əlemi 2023-03-07 13:16:13 +01:00
parent 62df0cf4ba
commit e102e85f9b
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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")