diff options
author | makamys <makamys@outlook.com> | 2022-06-23 03:59:31 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-23 03:59:51 +0200 |
commit | 9ef4af7127d97e5467c101f4566544cf027e72a7 (patch) | |
tree | 59108cedd0d73097ffd174cb8f22d4239bb49d4b /project.gradle | |
parent | 4a06b30c6b541304cb4678a89de5d822c3ce2a55 (diff) | |
download | Neodymium-9ef4af7127d97e5467c101f4566544cf027e72a7.tar.gz Neodymium-9ef4af7127d97e5467c101f4566544cf027e72a7.tar.bz2 Neodymium-9ef4af7127d97e5467c101f4566544cf027e72a7.zip |
Revert "Put commit hash in MANIFEST.MF"
This reverts commit 36f202c3e3863f19644cbe7044c921c9f541d575.
Diffstat (limited to 'project.gradle')
-rw-r--r-- | project.gradle | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/project.gradle b/project.gradle index 8edceeb..ed0b64a 100644 --- a/project.gradle +++ b/project.gradle @@ -1,27 +1,7 @@ -def getCommitHash(){ - try { - def commitHashProc = "git describe --always --dirty".execute() - commitHashProc.waitFor() - if(commitHashProc.exitValue() == 0){ - def commitHash = commitHashProc.text.trim() - - return commitHash - } else { - println commitHashProc.err.text - throw new Exception("git describe exited with non-zero return value") - } - } catch(Exception e){ - println "Failed to get commit version: " + e.getMessage() - } - return "UNKNOWN" // fallback -} - - jar { manifest { attributes ( - 'FMLAT': "LODMod_at.cfg", - 'Commit-ID': getCommitHash(), + 'FMLAT': "LODMod_at.cfg" ) } } |