Do not append commit when building locally

Because the commit is the version when building locally.
This commit is contained in:
NotMyFault 2021-04-19 12:56:34 +02:00
parent 00641c8108
commit cc75654b05
No known key found for this signature in database
GPG Key ID: 158F5701A6AAD00C

View File

@ -25,8 +25,12 @@ fun Project.applyPlatformAndCoreConfiguration() {
// apply(plugin = "checkstyle")
apply(plugin = "com.github.johnrengelman.shadow")
ext["internalVersion"] = "$version;${rootProject.ext["gitCommitHash"]}"
if (project.hasProperty("buildnumber")) {
ext["internalVersion"] = "$version;${rootProject.ext["gitCommitHash"]}"
} else {
ext["internalVersion"] = "$version"
}
tasks
.withType<JavaCompile>()
.matching { it.name == "compileJava" || it.name == "compileTestJava" }