Magnesium

Magnesium

4M Downloads

[Bug?] Cannot compile mod from source - gradle: Could not find blank:magapi:1.0

loimabean opened this issue ยท 9 comments

commented

Hello! This isn't exactly an issue with the mod, but more attempting to compile the mod myself. There is a dependency for the build called magapi (I assume Magnesium API), but when attempting to build with ./gradlew build, it fails. I cannot find this API anywhere on this page or your GitHub account. Is there anywhere where this file is publicly available, or a way to solve this issue?

P.S. sorry for making this a GitHub issue, it's not exactly the right spot. I couldn't find your Discord anywhere.

commented

Wanted to build it myself seeing as 1.18.1 support was added in a recent commit but ran into the same issue.

Trying to comment it out results in various errors...

commented

I found a solution to this problem (it's weird) : just download the latest version of the mod available on CurseForge, rename it to "magapi.jar" and create a folder in the source named "libs", then put "magapi.jar" in this libs folder, and the mod will be able to be built.

commented

I found a solution to this problem (it's weird) : just download the latest version of the mod available on CurseForge, rename it to "magapi.jar" and create a folder in the source named "libs", then put "magapi.jar" in this libs folder, and the mod will be able to be built.

I did manage to build it, but neither jar generated launches without crashing

commented

The one with "-all" works for me, but these builds are still totally broken, so a crash isn't surprising...

commented

For me, it crashes due to conflict with autoreglib

commented

ping @Someone-Else-Was-Taken same issue

commented

The one with "-all" works for me, but these builds are still totally broken, so a crash isn't surprising...

What do you mean by "-all" ? I'm also trying to compile this mod and have these issues.
My error:
image

With the magapi trick one error disappered, but seems like it's still missing something forge realted:
image

commented

It has some issues with ZIP end
This isn't full error as it's very long.
image

commented

Wanted to build it myself seeing as 1.18.1 support was added in a recent commit but ran into the same issue.

Trying to comment it out results in various errors...

Check #24 for a workaround