summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGiovanni Harting <539@idlegandalf.com>2016-07-21 18:20:47 +0200
committerGiovanni Harting <539@idlegandalf.com>2016-07-21 18:20:47 +0200
commit57fe4b607084a0e0cbdd6430bf9bc2f3b5284d06 (patch)
tree849bfc0d2a83903b362de1a6947373ec510d87a3 /build.gradle
parent00e5ca976f2f844851f29ce3f3dd282136a7869a (diff)
ext is a real pain
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle13
1 files changed, 5 insertions, 8 deletions
diff --git a/build.gradle b/build.gradle
index 7cd61c8..27519bd 100644
--- a/build.gradle
+++ b/build.gradle
@@ -35,11 +35,8 @@ repositories {
group = "com.sosnitzka" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "taiga"
-
-ext {
- tag = "snapshot"
- changes = ""
-}
+ext.tag = "snapshot"
+ext.changes = ""
minecraft {
version = "1.10.2-12.18.1.2011"
@@ -97,7 +94,7 @@ task buildInfo {
}
}
-version = "${mc_version}-${ext.tag}"
+version = "${mc_version}-${tag}"
//noinspection GroovyAssignabilityCheck
processResources {
@@ -132,11 +129,11 @@ curseforge {
apiKey = System.getenv().CURSE_API_KEY ? System.getenv().CURSE_API_KEY : "devBuild"
project {
id = '247661'
- changelog = project.ext.changes // A file can also be set using: changelog = file('changelog.txt')
+ changelog = project.changes // A file can also be set using: changelog = file('changelog.txt')
releaseType = 'release'
mainArtifact(jar) {
- displayName = "taiga-${project.ext.tag}"
+ displayName = "taiga-${project.tag}"
}
}
}