build.gradle: fix Git reference appending

This commit is contained in:
Adrian Siekierka 2022-06-08 00:23:09 +02:00
parent 9565d8f60f
commit fb73d37474

View File

@ -38,7 +38,7 @@ file "build.properties" withReader {
ext.config = new ConfigSlurper().parse prop ext.config = new ConfigSlurper().parse prop
} }
version = "${config.oc.version}" version = "${mod_version}"
group = "li.cil.oc" group = "li.cil.oc"
archivesBaseName = "OpenComputers" archivesBaseName = "OpenComputers"
@ -55,11 +55,6 @@ def getGitRef() {
} }
} }
if (System.getenv("PROMOTED_NUMBER") != null)
version += ".${System.getenv("PROMOTED_NUMBER")}"
else if (System.getenv("BUILD_NUMBER") != null)
version += ".${System.getenv("BUILD_NUMBER")}"
else
version += "+" + getGitRef() version += "+" + getGitRef()
ext.simpleVersion = version ext.simpleVersion = version