Add property lzNoGitHash to build script

This commit is contained in:
Jesse Boyd 2016-08-07 09:55:59 +10:00
parent ee5f6c8a58
commit 16ac206e70

View File

@ -20,6 +20,11 @@ ext {
git = org.ajoberstar.grgit.Grgit.open(file(".git"))
revision = "-${git.head().abbreviatedId}"
}
if ( project.hasProperty("lzNoGitHash") ) { // gradle build -PlzNoGitHash
revision = "";
}
version = "3.5.1${revision}"
description = """FastAsyncWorldEdit"""