1
0
Fork 0

Test revision support

kcx-1614
Prototik 2015-06-22 13:32:21 +07:00
parent 997543753e
commit db5612fa2e
1 changed files with 2 additions and 3 deletions

View File

@ -86,7 +86,7 @@ def gitInfo(String key) {
ext.mcVersion = "1.7.10"
ext.forgeVersion = "1448"
ext.revision = buildInfo('nextBuildNumber')
ext.revision = project.hasProperty('revision') ? project.getProperty('revision') : buildInfo('nextBuildNumber')
version = "${mcVersion}-${forgeVersion}.${revision}"
if (project.hasProperty('officialBuild')) println "Updated KCauldron version: ${version}"
@ -200,14 +200,13 @@ task packageChangelog(type: CreateChangelog) {
version = project.version
}
task installBundle(type: InstallBundle, dependsOn: packageUniversal) {
task installBundle(type: InstallBundle, dependsOn: jar) {
serverJar tasks.jar.archivePath
bootstrapClasspath configurations.bootstrap
bootstrapMain 'pw.prok.bootstrap.Main'
}
task packageBundle(type: Zip, dependsOn: installBundle) {
onlyIf { project.hasProperty('officialBuild') }
classifier = 'bundle'
from fileTree(installBundle.installLocation)
}