Skip to content

Commit

Permalink
Version metadata is the bane of my existance
Browse files Browse the repository at this point in the history
  • Loading branch information
TibiNonEst authored Dec 7, 2022
1 parent d22fa3d commit 3ac8c2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
Expand All @@ -106,7 +106,7 @@ def getMetadata() {
id += "-dirty"
}

metadata += "${id}"
metadata += "+${id}"
}

return metadata
Expand Down

0 comments on commit 3ac8c2c

Please sign in to comment.