From db5612fa2eed4744b31f7231ccd7a67a0173c91b Mon Sep 17 00:00:00 2001 From: Prototik Date: Mon, 22 Jun 2015 13:32:21 +0700 Subject: [PATCH] Test revision support --- build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 4a002c5..339d789 100644 --- a/build.gradle +++ b/build.gradle @@ -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) }