Add property lzNoGitHash to build script
This commit is contained in:
parent
ee5f6c8a58
commit
16ac206e70
@ -20,6 +20,11 @@ ext {
|
|||||||
git = org.ajoberstar.grgit.Grgit.open(file(".git"))
|
git = org.ajoberstar.grgit.Grgit.open(file(".git"))
|
||||||
revision = "-${git.head().abbreviatedId}"
|
revision = "-${git.head().abbreviatedId}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( project.hasProperty("lzNoGitHash") ) { // gradle build -PlzNoGitHash
|
||||||
|
revision = "";
|
||||||
|
}
|
||||||
|
|
||||||
version = "3.5.1${revision}"
|
version = "3.5.1${revision}"
|
||||||
description = """FastAsyncWorldEdit"""
|
description = """FastAsyncWorldEdit"""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user