MCMTFabricCE icon indicating copy to clipboard operation
MCMTFabricCE copied to clipboard

Build failed due to outdated dependencies

Open qwert0p opened this issue 2 years ago • 3 comments

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.

qwert0p avatar Jun 19 '22 14:06 qwert0p

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

KenRouKoro avatar Jun 20 '22 03:06 KenRouKoro

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).

KenRouKoro avatar Jun 20 '22 03:06 KenRouKoro

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.

qwert0p avatar Jun 21 '22 14:06 qwert0p