From 46ef0ce608a78284f6f71d419d11efaff82f8a49 Mon Sep 17 00:00:00 2001 From: BlayTheNinth <1933180+BlayTheNinth@users.noreply.github.com> Date: Thu, 23 May 2024 14:04:18 +0200 Subject: [PATCH] fix(1.20.6): Fix forge builds --- buildSrc/src/main/groovy/multiloader-common.gradle | 3 ++- forge/build.gradle | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/multiloader-common.gradle b/buildSrc/src/main/groovy/multiloader-common.gradle index 10d696d..25c1fc0 100644 --- a/buildSrc/src/main/groovy/multiloader-common.gradle +++ b/buildSrc/src/main/groovy/multiloader-common.gradle @@ -64,7 +64,8 @@ jar { 'Implementation-Title' : project.name, 'Implementation-Version': project.jar.archiveVersion, 'Implementation-Vendor' : mod_author, - 'Built-On-Minecraft' : minecraft_version + 'Built-On-Minecraft' : minecraft_version, + 'MixinConfigs' : "${mod_id}.mixins.json,${mod_id}.${project.name}.mixins.json", ]) } } diff --git a/forge/build.gradle b/forge/build.gradle index 8d1b747..1a3471c 100644 --- a/forge/build.gradle +++ b/forge/build.gradle @@ -16,6 +16,8 @@ mixin { minecraft { mappings channel: 'official', version: minecraft_version + reobf = false + copyIdeResources = true // Automatically enable forge AccessTransformers if the file exists @@ -75,6 +77,8 @@ sourceSets.main.resources.srcDir 'src/generated/resources' dependencies { minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" annotationProcessor "org.spongepowered:mixin:${mixin_version}:processor" + // temporary hacky fix as suggested by Forge + implementation('net.sf.jopt-simple:jopt-simple:5.0.4') { version { strictly '5.0.4' } } } apply from: rootProject.file('repositories.gradle')