mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-24 19:46:34 +01:00
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