fabric-loom icon indicating copy to clipboard operation
fabric-loom copied to clipboard

multiProjectOptimisation breaks builds on multi-project projects

Open BluCobalt opened this issue 1 year ago • 3 comments

Setting multiProjectOptimisation causes builds to not include classes in artifacts if you build with :build from the root project. Either disabling multiProjectOptimisation or running :subproject:build directly builds normally without any problems.

BluCobalt avatar Apr 19 '23 05:04 BluCobalt

I suppose your subprojects are using different MC versions? In that case, breakage is expected. Although Loom should probably catch that beforehand and print an error message

NebelNidas avatar May 06 '23 19:05 NebelNidas

I've encountered the same problem in my project. The build task gives erros related to the following code https://github.com/FabricMC/fabric-loom/blob/cfe72b933a35778fbac05628f7a5111b9219c6e0/src/main/java/net/fabricmc/loom/util/service/SharedServiceManager.java#L54

c0nstexpr avatar Aug 01 '23 08:08 c0nstexpr

I've encountered the same problem in my project. The build task gives erros related to the following code

https://github.com/FabricMC/fabric-loom/blob/cfe72b933a35778fbac05628f7a5111b9219c6e0/src/main/java/net/fabricmc/loom/util/service/SharedServiceManager.java#L54

I switch back gradle jdk version to 17 and it build successfully. It's weird

c0nstexpr avatar Aug 01 '23 09:08 c0nstexpr