mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-08 23:06:58 -04:00
build.gradle: fix Git reference appending
This commit is contained in:
parent
9565d8f60f
commit
fb73d37474
@ -38,7 +38,7 @@ file "build.properties" withReader {
|
||||
ext.config = new ConfigSlurper().parse prop
|
||||
}
|
||||
|
||||
version = "${config.oc.version}"
|
||||
version = "${mod_version}"
|
||||
group = "li.cil.oc"
|
||||
archivesBaseName = "OpenComputers"
|
||||
|
||||
@ -55,12 +55,7 @@ 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
|
||||
version = "MC${config.minecraft.version}-${project.version}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user