neoforged / MDK

The Mod Developer Kit - this is where you start if you want to develop a new mod
https://github.com/NeoForgeMDKs
183 stars 60 forks source link

Gradle load fail on MacOS #69

Closed Ramen5914 closed 1 month ago

Ramen5914 commented 1 month ago

Using the latest version of the MDK, I am getting an error when I try to load the java project on mac.

Execution failed for task ':neoFormRecompile'.

Could not resolve all files for configuration ':neoGradleInternalUnhandledNeoFormMinecraftDependenciesForneoFormJoined1.20.6-20240429.153634'. Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3). Searched in the following locations: https://maven.neoforged.net/releases/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-macos-patch.jar

Possible solution:

Ramen5914 commented 1 month ago

I tried to add the maven repository that has the lwjgl-freetype jar but it didn't work.

Anonymous2416 commented 1 month ago

having the same issue on Mac

TelepathicGrunt commented 1 month ago

@Ramen5914

See if updating NeoGradle works for you. In your build.gradle file, change the neogradle version to this https://projects.neoforged.net/neoforged/neogradle

Then reimport the project or refresh gradle and try again

CrypticVerse commented 1 month ago

I know that mojang has patched versions of lwjgl on their maven (libraries.minecraft.net) for macOS, so maybe that's it?

Ramen5914 commented 1 month ago

@Ramen5914

See if updating NeoGradle works for you. In your build.gradle file, change the neogradle version to this https://projects.neoforged.net/neoforged/neogradle

Then reimport the project or refresh gradle and try again

That was it, thanks!!! I can make a PR that updates the MDK to the latest version of neoforged and neogradle.

Ramen5914 commented 1 month ago

@CrypticVerse Yeah, that's basically the problem, but the solution is just to update NeoGradle and then it is able to find the right artifact.

Shadows-of-Fire commented 1 month ago

Versions have been updated to latest for 1.20.6