architectury / architectury-loom

A Gradle plugin to setup environments for Fabric, Forge, NeoForge and Quilt modding.
https://docs.architectury.dev/loom/introduction
MIT License
115 stars 41 forks source link

forgeRuntimeLibrary does not work for certain dependencies with NeoForge #248

Open stewi1014 opened 6 days ago

stewi1014 commented 6 days ago

Some dependencies cannot be found when running NeoForge despite using forgeRuntimeLibrary.

Steps to reproduce:

References to the library will throw java.lang.ClassNotFoundException. This does not happen with the shadow jar, does not happen under fabric and only seems to happen for some libraries.

I've created a repo from https://generate.architectury.dev/ that reproduces the issue: https://github.com/stewi1014/architectury-import-test/commit/d8f3e80c73ca05aa8e236db8e22634c51f6c3853

Edit: Just realized the generator used 1.6-SNAPSHOT version of Architectury Loom, but there's no change when using 1.7-SNAPSHOT. I originally had this issue in a mod using 1.7-SNAPSHOT.