Improve logging, update to 5.5.1

This commit is contained in:
Kenzie Togami 2019-07-13 22:16:16 -07:00
parent 5277f99bf2
commit 52a62b984b
No known key found for this signature in database
GPG Key ID: 5D200B325E157A81
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
import org.ajoberstar.grgit.Grgit
println("""
logger.lifecycle("""
*******************************************
You are building WorldEdit!
@ -19,9 +19,9 @@ applyRootArtifactoryConfig()
if (!project.hasProperty("gitCommitHash")) {
apply(plugin = "org.ajoberstar.grgit")
ext["gitCommitHash"] = try {
(ext["grgit"] as Grgit).head().abbreviatedId
(ext["grgit"] as Grgit?)?.head()?.abbreviatedId
} catch (e: Exception) {
println("Error getting commit hash: " + e.message)
logger.warn("Error getting commit hash", e)
"no_git_id"
}

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists