mirror of
https://github.com/LegacyModdingMC/UniMixins.git
synced 2026-10-26 14:34:00 +00:00
Use VERSION tag in Mixin module
This commit is contained in:
1 parent
b5891061e0
commit
46a5c6d167
3 files changed
+8
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
+2
-2
@@ -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 {}
|
||||
Reference in new issue
Block a user