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'