aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2020-12-15 20:45:35 +0800
committershedaniel <daniel@shedaniel.me>2020-12-15 20:45:35 +0800
commit9784e9f7228fc0aa3ca814e3830dbd81996a3693 (patch)
treee6b815c435b293ec5714dee1e5040a136b6ad10f /build.gradle
parent1f6137d24153b62c42da129ce5d6373bbf78ee34 (diff)
downloadRoughlyEnoughItems-9784e9f7228fc0aa3ca814e3830dbd81996a3693.tar.gz
RoughlyEnoughItems-9784e9f7228fc0aa3ca814e3830dbd81996a3693.tar.bz2
RoughlyEnoughItems-9784e9f7228fc0aa3ca814e3830dbd81996a3693.zip
wip
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'build.gradle')
-rwxr-xr-xbuild.gradle8
1 files changed, 7 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle
index 759ad8075..91f6da49d 100755
--- a/build.gradle
+++ b/build.gradle
@@ -29,9 +29,15 @@ import java.text.SimpleDateFormat
import java.util.function.Consumer
archivesBaseName = "RoughlyEnoughItems"
-version = project.mod_version
+version = project.mod_version + (unstable == "true" ? "-unstable-" + buildTime() : "")
group = "me.shedaniel"
+static def buildTime() {
+ def df = new SimpleDateFormat("yyyyMMdd")
+ df.setTimeZone(TimeZone.getTimeZone("UTC"))
+ return df.format(new Date())
+}
+
allprojects {
apply plugin: 'maven-publish'
apply plugin: 'fabric-loom'