Use VERSION tag in Mixin module

This commit is contained in:
makamys committed 2023-10-19 06:27:59 +02:00
1 parent b5891061e0
commit 46a5c6d167
3 files changed
+8 -2

No files matched your search

+2
View File
@@ -60,6 +60,8 @@ allprojects {
// TODO only include IFMLLoadingPlugin, Mod and ComparableVersion
compileOnly "net.minecraftforge:forge:1.12.2-14.23.5.2860:universal"
}
minecraft.injectedTags.put("VERSION", project.version)
if(project.name.startsWith("module-") && project.name != "module-mixin" && project.name != "module-common") {
// TODO rfg: figure out source and dev jars
+4
View File
@@ -1,5 +1,9 @@
apply from: "${rootDir}/module-conventions.gradle"
tasks.injectTags.configure {
outputClassName.set("io.github.legacymoddingmc.unimixins.mixin.Tags")
}
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
buildscript {
@@ -6,6 +6,6 @@ import cpw.mods.fml.common.Mod;
* An empty mod class provided to make it impossible to load multiple editions
* of the module at the same time.
*/
@Mod(modid = "unimixins-mixin", version = "@VERSION@", acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "unimixins-mixin", version = "@VERSION@", acceptableRemoteVersions = "*")
@Mod(modid = "unimixins-mixin", version = Tags.VERSION, acceptableRemoteVersions = "*")
@net.minecraftforge.fml.common.Mod(modid = "unimixins-mixin", version = Tags.VERSION, acceptableRemoteVersions = "*")
public class MixinModule {}