Default gitCommitHash

This commit is contained in:
Kenzie Togami 2016-02-22 19:16:14 -08:00
parent a1680886a4
commit a64a53db7f

View File

@ -44,9 +44,11 @@
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'