fix: use gitversion properly
This commit is contained in:
parent
7640b4f6b8
commit
115c4f0470
1 changed files with 2 additions and 4 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue