diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-12-15 20:45:35 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-12-15 20:45:35 +0800 |
| commit | 9784e9f7228fc0aa3ca814e3830dbd81996a3693 (patch) | |
| tree | e6b815c435b293ec5714dee1e5040a136b6ad10f /build.gradle | |
| parent | 1f6137d24153b62c42da129ce5d6373bbf78ee34 (diff) | |
| download | RoughlyEnoughItems-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-x | build.gradle | 8 |
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' |
