Use string template

This commit is contained in:
Goooler 2021-04-24 10:53:30 +08:00
parent 8828ab53b7
commit caa57b4d55

View File

@ -98,7 +98,7 @@ if (!('release' in gradle.startParameter.taskNames)) {
project.ext.set("hash", hash) project.ext.set("hash", hash)
project.ext.set("apktool_version", version + "-" + hash + "-SNAPSHOT") project.ext.set("apktool_version", version + "-" + hash + "-SNAPSHOT")
mavenVersion = version + "-SNAPSHOT" mavenVersion = version + "-SNAPSHOT"
println "Building SNAPSHOT (" + getCheckedOutBranch() + "): " + hash println "Building SNAPSHOT (${getCheckedOutBranch()}): $hash"
} }
} else { } else {
project.ext.set("hash", "") project.ext.set("hash", "")
@ -108,7 +108,7 @@ if (!('release' in gradle.startParameter.taskNames)) {
project.ext.set("apktool_version", version) project.ext.set("apktool_version", version)
} }
mavenVersion = version mavenVersion = version
println "Building RELEASE (" + getCheckedOutBranch() + "): " + project.ext.apktool_version println "Building RELEASE (${getCheckedOutBranch()}): $project.ext.apktool_version"
} }
build.doFirst { build.doFirst {