KenRouKoro / MCMTFabricCE

基于MCMTFabric开发的,致力于兼容其他模组一个分支模组。
https://www.curseforge.com/minecraft/mc-mods/mcmtfabricce
GNU General Public License v3.0
28 stars 0 forks source link

Build failed due to outdated dependencies #6

Open qwert0p opened 2 years ago

qwert0p commented 2 years ago

Hello, i tried to build this project, but i got this:

A problem occurred configuring root project 'MCMTFabricCE'. Could not resolve all dependencies for configuration ':modImplementation'. Could not find RebornCore:RebornCore-unknown:5.2.0+local. Could not find TechReborn:TechReborn-unknown:5.2.0+local. Could not find com.simibubi:CreateFabric:mc1.18.2_v0.4.1.

I noticed that renaming CreateFabric to Create fixes one dependency, but not the others. Also thank you for continuing the MCMTF project life, and i have a suggestion to upload it on Modrinth which is very cool alternative to curseforge.

KenRouKoro commented 2 years ago

I will consider releasing this mod on Modrinthi, but it will be some time before I have to learn how to use Modrinthi.

KenRouKoro commented 2 years ago

There is also the fact that the dependency that is in error is actually a locally modified counterpart of the project. This is because Access Wideners cannot be used for other mods, but Mixin can (Mixin can ignore each other's access rights, as long as the compilation passes).

qwert0p commented 2 years ago

I fixed the issue by applying this patch to build.gradle:

@@ -55,9 +55,11 @@ dependencies {
     modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

     compileOnly "appeng:appliedenergistics2:11.0.0-alpha.5"
-    modImplementation "RebornCore:RebornCore-unknown:5.2.0+local"
-    modImplementation "TechReborn:TechReborn-unknown:5.2.0+local"
-    modImplementation "com.simibubi:CreateFabric:mc1.18.2_v0.4.1"
+    modImplementation files("lib/RebornCore-5.2.0+local.jar")
+    modImplementation files("lib/TechReborn-5.2.0+local.jar")
+    modImplementation files("lib/energy-2.2.0.jar")
+    modImplementation "com.simibubi:Create:mc1.18.2_v0.4.1+631"

and replacing techreborn's jar in lib folder with the one patched in order to change access modifiers.