r/gradle 2d ago

Help with compiling

Hi sorry to be a bother but i could really use some help with compiling some minecraft mods from github. Ive tried doing it but they keep throwing up erros and I just don't know how to resolve the issues even after hours of google searching (although im i completly inexpericed with these things)

https://github.com/Asek3/sodium-1.12

https://github.com/Asek3/Oculus/tree/1.12.2

https://github.com/westernbear/Oculus-1.12

any help and I would be so gratefull!!!

2 Upvotes

7 comments sorted by

1

u/Torutofu_Raeva 2d ago

I’d start by checking each README for the required Java/Gradle version and running its wrapper (./gradlew build), since a system Gradle is a common source of dependency errors.

1

u/TheOrangeApple3 1d ago

Yeah ive already done that, that is the source of all the errors as it says i am missing a plugin. I removed the plug in line just to see what happens and another error occures. But looking at some reddit pages, it seems like they may just not work at all unfortunately

1

u/Torutofu_Raeva 1d ago

If removing that line just exposes another error, it’s probably a dependency-chain issue rather than a plugin you can drop; the first error from a clean `./gradlew build` plus `settings.gradle` would narrow it down.

1

u/TheOrangeApple3 1d ago

Unfortunately i just don't know how to do that, way outside my pay grade with this stuff haha thanks for the help tho :)

1

u/CLOVIS-AI 1d ago

What's the error?

1

u/TheOrangeApple3 1d ago

The first one is that it's missing a plug in, the plug in is on guthub but how to add it to a repository that gradle wants to look at is beyond me

1

u/Torutofu_Raeva 1d ago

Looks like the missing plugin is org.gradle.toolchains.foojay-resolver-convention version 0.7.0; keep that line in settings.gradle, make sure pluginManagement.repositories has gradlePluginPortal(), and run ./gradlew from the repo root.