aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/build.gradle12
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/build.gradle b/mod/build.gradle
index 9a4fc57d..5e2f0262 100644
--- a/mod/build.gradle
+++ b/mod/build.gradle
@@ -125,6 +125,16 @@ loom {
}
}
+ext.genOutputDir = file("$buildDir/generated-resources")
+
+task generateVersionInfo {
+ ext.outputFile = file("$genOutputDir/versionMeta.properties")
+ outputs.file(outputFile)
+ doLast {
+ outputFile.text = "VERSION=${project.version}\nMANDATORY_VERSION=0"
+ }
+}
+sourceSets.main.output.dir genOutputDir, builtBy: generateVersionInfo
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
@@ -137,6 +147,8 @@ tasks.withType(Jar) {
// this["TweakClass"] = "org.spongepowered.asm.launch.MixinTweaker"
// this["MixinConfigs"] = "mixins.examplemod.json"
}
+
+
}