diff options
-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" ) } } |