diff options
author | syeyoung <cyoung06@naver.com> | 2023-02-24 23:21:04 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-02-24 23:21:04 +0900 |
commit | d86eb4d9f0e16e5acc0f35a88b894eca4592abf5 (patch) | |
tree | 820851de757919734ebc43ae345e74fa018eba83 /mod | |
parent | f547a84a8d3ae0b9f34ca43caac5039899950fd1 (diff) | |
download | Skyblock-Dungeons-Guide-d86eb4d9f0e16e5acc0f35a88b894eca4592abf5.tar.gz Skyblock-Dungeons-Guide-d86eb4d9f0e16e5acc0f35a88b894eca4592abf5.tar.bz2 Skyblock-Dungeons-Guide-d86eb4d9f0e16e5acc0f35a88b894eca4592abf5.zip |
- version info injection
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod')
-rw-r--r-- | mod/build.gradle | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/build.gradle b/mod/build.gradle index ca9d2054..4cabcd60 100644 --- a/mod/build.gradle +++ b/mod/build.gradle @@ -114,6 +114,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" @@ -126,6 +136,8 @@ tasks.withType(Jar) { // this["TweakClass"] = "org.spongepowered.asm.launch.MixinTweaker" // this["MixinConfigs"] = "mixins.examplemod.json" } + + } |