Improve logging, update to 5.5.1
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user