mirror of
https://github.com/TibiNonEst/cauldron-dyeing.git
synced 2024-11-24 03:27:19 -05:00
Version metadata is the bane of my existance
This commit is contained in:
parent
d22fa3d545
commit
3ac8c2c9b4
1 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
archivesBaseName = project.archives_base_name
|
archivesBaseName = project.archives_base_name
|
||||||
version = "${project.mod_version}+${getMetadata()}"
|
version = "${project.mod_version}${getMetadata()}"
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -96,7 +96,7 @@ def getMetadata() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (build_id != null) {
|
if (build_id != null) {
|
||||||
metadata += "build.${build_id}"
|
metadata += "+build.${build_id}"
|
||||||
} else if (grgit != null) {
|
} else if (grgit != null) {
|
||||||
def head = grgit.head()
|
def head = grgit.head()
|
||||||
def id = head.abbreviatedId
|
def id = head.abbreviatedId
|
||||||
|
@ -106,7 +106,7 @@ def getMetadata() {
|
||||||
id += "-dirty"
|
id += "-dirty"
|
||||||
}
|
}
|
||||||
|
|
||||||
metadata += "${id}"
|
metadata += "+${id}"
|
||||||
}
|
}
|
||||||
|
|
||||||
return metadata
|
return metadata
|
||||||
|
|
Loading…
Reference in a new issue