FabricMC / fabric-loom

Gradle build system plugin used to automate the setup of a minecraft mod development environment.
MIT License
233 stars 200 forks source link

Multi-project project fails to sync when loom is used #928

Closed douzooo closed 1 year ago

douzooo commented 1 year ago

Im currently trying to setup legcy fabric and this error cameup using the mod template, https://pastebin.com/h1eLWDv8

https://github.com/NebulaBuilds/NebulaClient/ here is my project

Juuxel commented 1 year ago

You are mixing two different versions of Loom in the same project hierarchy which messes up the classloader. You can instead declare the Loom plugin dependency in the root project with apply false:

plugins {
  id 'fabric-loom' version '1.3-SNAPSHOT' apply false
}

and use it without a manually specified version in subprojects:

plugins {
  id 'fabric-loom'
}
douzooo commented 1 year ago

Thank you that fixed my issue, I've already seen something like this but didn't quiet understood what to do. I wish you a great day / night