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:
parent
62df0cf4ba
commit
e102e85f9b
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue