From 0ddac23f0f76f5a9e32ce94161b45acdca5aec3e Mon Sep 17 00:00:00 2001 From: plusls Date: Sun, 14 Nov 2021 01:42:28 +0800 Subject: [PATCH] check alpha version --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 9eff3ff..9d7727f 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ String real_version = "${project.mod_version}" String getGitMetadata() { String ret = grgit.head().abbreviatedId - if (!grgit.status().clean) { + if (!grgit.status().clean && project.pre_release == "alpha") { ret = new Date().format('yyyyMMdd.HHmmss') + ".dirty." + ret } return ret