Skip to content

Commit

Permalink
build: update build version name
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikBR committed Feb 7, 2024
1 parent 6f80cba commit 402412f
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,6 @@ dependencies {
modIncludeImplementation(fabricApi.module("fabric-resource-loader-v0", project.fabric_version))
}

def getVersionMetadata() {
// CI builds only
if (project.hasProperty("build.release")) {
return "" // no tag whatsoever
}

if (grgit != null) {
def head = grgit.head()
def id = head.abbreviatedId

// Flag the build if the build tree is not clean
if (!grgit.status().clean) {
id += "-dirty"
}

return "+git.${id}"
}

// No tracking information could be found about the build
return "+unknown"
static def getVersionMetadata() {
return ""
}

0 comments on commit 402412f

Please sign in to comment.