|
@@ -1,3 +1,5 @@
|
|
|
+import java.text.SimpleDateFormat
|
|
|
+
|
|
|
plugins {
|
|
|
id 'fabric-loom' version '0.2.4-SNAPSHOT'
|
|
|
id 'maven-publish'
|
|
@@ -12,7 +14,7 @@ targetCompatibility = 1.8
|
|
|
|
|
|
group = "me.shedaniel.cloth"
|
|
|
archivesBaseName = "config-2"
|
|
|
-version = project.mod_version
|
|
|
+version = project.mod_version.contains("unstable") ? (project.mod_version + "." + buildTime()) : project.mod_version
|
|
|
|
|
|
minecraft {
|
|
|
}
|
|
@@ -24,6 +26,12 @@ processResources {
|
|
|
inputs.property "version", project.version
|
|
|
}
|
|
|
|
|
|
+static def buildTime() {
|
|
|
+ def df = new SimpleDateFormat("yyyyMMddHHmm")
|
|
|
+ df.setTimeZone(TimeZone.getTimeZone("UTC"))
|
|
|
+ return df.format(new Date())
|
|
|
+}
|
|
|
+
|
|
|
dependencies {
|
|
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
|
|
mappings "net.fabricmc:yarn:${project.yarn_version}"
|