summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiovanni Harting <539@idlegandalf.com>2016-07-21 18:23:45 +0200
committerGiovanni Harting <539@idlegandalf.com>2016-07-21 18:23:45 +0200
commit3251370335a3d77b8a38445700e47ba5b3f2bad6 (patch)
treefe75d92bb7e69a86f4e3832e38c2912f3659acdc
parent57fe4b607084a0e0cbdd6430bf9bc2f3b5284d06 (diff)
thia time its another pain
-rw-r--r--build.gradle48
1 files changed, 24 insertions, 24 deletions
diff --git a/build.gradle b/build.gradle
index 27519bd..20c402c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -38,6 +38,30 @@ archivesBaseName = "taiga"
ext.tag = "snapshot"
ext.changes = ""
+task buildInfo {
+ def cmd = "git describe --tags \$(git rev-list --tags --max-count=1)"
+ def proc = cmd.execute()
+ proc.waitFor()
+ if (proc.exitValue() == 0) {
+ project.ext.tag = proc.text.trim()
+ }
+
+ if (System.getenv().BUILD_NUMBER != null) {
+ ext.buildNum = System.getenv().BUILD_NUMBER
+ }
+
+ project.ext.mc_version = project.minecraft.version.split('-')[0]
+
+ def cmd_changes = "git log \$(git describe --tags --abbrev=0)..\$(git describe --tags \$(git rev-list --tags --max-count=1)) --oneline"
+ def proc_changes = cmd_changes.execute()
+ proc_changes.waitFor()
+ if (proc_changes.exitValue() == 0) {
+ project.ext.changes = proc_changes.text.trim()
+ }
+}
+
+version = "${mc_version}-${tag}"
+
minecraft {
version = "1.10.2-12.18.1.2011"
runDir = "run"
@@ -72,30 +96,6 @@ sourceSets {
}
}
-task buildInfo {
- def cmd = "git describe --tags \$(git rev-list --tags --max-count=1)"
- def proc = cmd.execute()
- proc.waitFor()
- if (proc.exitValue() == 0) {
- project.ext.tag = proc.text.trim()
- }
-
- if (System.getenv().BUILD_NUMBER != null) {
- ext.buildNum = System.getenv().BUILD_NUMBER
- }
-
- project.ext.mc_version = project.minecraft.version.split('-')[0]
-
- def cmd_changes = "git log \$(git describe --tags --abbrev=0)..\$(git describe --tags \$(git rev-list --tags --max-count=1)) --oneline"
- def proc_changes = cmd_changes.execute()
- proc_changes.waitFor()
- if (proc_changes.exitValue() == 0) {
- project.ext.changes = proc_changes.text.trim()
- }
-}
-
-version = "${mc_version}-${tag}"
-
//noinspection GroovyAssignabilityCheck
processResources {
// this will ensure that this task is redone when the versions change.