From a64a53db7ff68acefbfef329b66b7f97abc00711 Mon Sep 17 00:00:00 2001 From: Kenzie Togami Date: Mon, 22 Feb 2016 19:16:14 -0800 Subject: [PATCH] Default gitCommitHash --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 264c20903..144b8de13 100644 --- a/build.gradle +++ b/build.gradle @@ -44,9 +44,11 @@ if (!project.hasProperty("gitCommitHash") && !JavaVersion.current().isJava6()) { ext.gitCommitHash = repo.head().abbreviatedId } catch (Exception e) { println "Error getting commit hash: " + e.getMessage() - ext.gitCommitHash = "no_git_id" } } +if (!project.hasProperty("gitCommitHash")) { + ext.gitCommitHash = "no_git_id" +} subprojects { apply plugin: 'java'