change versioning code so that curse forge builds are labeled the same as ones from files

This commit is contained in:
Progwml6 2016-01-19 01:21:35 -05:00
parent b50c6eb126
commit c2646a5d69
1 changed files with 4 additions and 4 deletions

View File

@ -27,9 +27,6 @@ repositories {
dirs "repo" dirs "repo"
} }
} }
// IronChest uses git tagging to mark major versions. This sets up the project version to that version data
def versionInfo = getGitVersion()
version = "${versionInfo['IronChest.version']}"
// This is our group. I'm cpw.mods // This is our group. I'm cpw.mods
group= "cpw.mods" // http://maven.apache.org/guides/mini/guide-naming-conventions.html group= "cpw.mods" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
@ -43,6 +40,9 @@ minecraft {
runDir = "run" runDir = "run"
} }
// IronChest uses git tagging to mark major versions. This sets up the project version to that version data
def versionInfo = getGitVersion()
version = "${project.minecraft.version}-${versionInfo['IronChest.version']}"
curseforge { curseforge {
apiKey = project.hasProperty('curseforge_apikey') ? project.curseforge_apikey : '0' apiKey = project.hasProperty('curseforge_apikey') ? project.curseforge_apikey : '0'
@ -103,7 +103,7 @@ uploadArchives {
pom { pom {
groupId = project.group groupId = project.group
// Force the maven upload to use the <mcversion>-<version> syntax preferred at files // Force the maven upload to use the <mcversion>-<version> syntax preferred at files
version = "${project.minecraft.version}-${project.version}" version = "${project.version}"
artifactId = project.archivesBaseName artifactId = project.archivesBaseName
project { project {
name project.archivesBaseName name project.archivesBaseName