ext is a real pain

This commit is contained in:
2016-07-21 18:20:47 +02:00
parent 00e5ca976f
commit 57fe4b6070

View File

@@ -35,11 +35,8 @@ repositories {
group = "com.sosnitzka" // http://maven.apache.org/guides/mini/guide-naming-conventions.html group = "com.sosnitzka" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "taiga" archivesBaseName = "taiga"
ext.tag = "snapshot"
ext { ext.changes = ""
tag = "snapshot"
changes = ""
}
minecraft { minecraft {
version = "1.10.2-12.18.1.2011" 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 //noinspection GroovyAssignabilityCheck
processResources { processResources {
@@ -132,11 +129,11 @@ curseforge {
apiKey = System.getenv().CURSE_API_KEY ? System.getenv().CURSE_API_KEY : "devBuild" apiKey = System.getenv().CURSE_API_KEY ? System.getenv().CURSE_API_KEY : "devBuild"
project { project {
id = '247661' 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' releaseType = 'release'
mainArtifact(jar) { mainArtifact(jar) {
displayName = "taiga-${project.ext.tag}" displayName = "taiga-${project.tag}"
} }
} }
} }