fabric-loom
fabric-loom copied to clipboard
multiProjectOptimisation breaks builds on multi-project projects
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.
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
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'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