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
|
alias libs.plugins.checkerFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
version = gitVersion()
|
version = versionDetails().lastTag
|
||||||
group = 'ftbsc'
|
group = 'ftbsc'
|
||||||
archivesBaseName = 'bscv'
|
archivesBaseName = 'bscv'
|
||||||
|
|
||||||
def shortVersion = version.split('-')[0].replaceAll(".dirty", "") // necessary when there are no extra commits on tags, and thus no dash
|
|
||||||
|
|
||||||
project.ext {
|
project.ext {
|
||||||
deployJarDo = getProjectProperty("deployJar.do", "false")
|
deployJarDo = getProjectProperty("deployJar.do", "false")
|
||||||
deployJarTargetDir = getProjectProperty("deployJar.targetDir", ".")
|
deployJarTargetDir = getProjectProperty("deployJar.targetDir", ".")
|
||||||
|
@ -70,7 +68,7 @@ compileJava { //mappings for lillero-processor
|
||||||
}
|
}
|
||||||
|
|
||||||
jar {
|
jar {
|
||||||
archiveFileName = "${jar.archiveBaseName.get()}-${shortVersion}.${jar.archiveExtension.get()}"
|
archiveFileName = "${jar.archiveBaseName.get()}-${archiveVersion.get()}.${jar.archiveExtension.get()}"
|
||||||
manifest {
|
manifest {
|
||||||
attributes([
|
attributes([
|
||||||
"Specification-Title": "bscv",
|
"Specification-Title": "bscv",
|
||||||
|
|
Loading…
Reference in a new issue