Skip to content

Commit

Permalink
Use VERSION tag in Mixin module
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Oct 19, 2023
1 parent b589106 commit 46a5c6d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions module-mixin/build.gradle
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
* 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 {}

0 comments on commit 46a5c6d

Please sign in to comment.