From 4a72b97164b3fff324ba86c0ac8dde037476add4 Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Mon, 22 Aug 2016 17:19:52 -0700 Subject: [PATCH] Fix getting the git hash --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 1b31fe60d..c65957983 100644 --- a/build.gradle +++ b/build.gradle @@ -43,7 +43,7 @@ if (!project.hasProperty("artifactory_password")) ext.artifactory_password = "" if (!project.hasProperty("gitCommitHash") && !JavaVersion.current().isJava6()) { try { - def repo = Grgit.open(dir: '.') + def repo = org.ajoberstar.grgit.Grgit.open(dir: '.') ext.gitCommitHash = repo.head().abbreviatedId } catch (Exception e) { println "Error getting commit hash: " + e.getMessage()