Version metadata is the bane of my existance

This commit is contained in:
tibs 2022-12-07 15:37:29 -05:00 committed by GitHub
parent d22fa3d545
commit 3ac8c2c9b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,7 +6,7 @@ plugins {
}
archivesBaseName = project.archives_base_name
version = "${project.mod_version}+${getMetadata()}"
version = "${project.mod_version}${getMetadata()}"
group = project.maven_group
repositories {
@ -96,7 +96,7 @@ def getMetadata() {
}
if (build_id != null) {
metadata += "build.${build_id}"
metadata += "+build.${build_id}"
} else if (grgit != null) {
def head = grgit.head()
def id = head.abbreviatedId
@ -106,7 +106,7 @@ def getMetadata() {
id += "-dirty"
}
metadata += "${id}"
metadata += "+${id}"
}
return metadata