Matyrobbrt / RegistrationUtils

A minecraft library for multiloader registration utilities
MIT License
16 stars 3 forks source link

Circular dependency between the following tasks [1.20.1-2.0.1] #14

Closed YeoXuHang closed 2 months ago

YeoXuHang commented 3 months ago

This only happens on Registration [Forge]


> Configure project :Common
Targeting Minecraft '1.20.1' on a 'JOINED' platform

> Configure project :Fabric
Fabric Loom: 1.5.8

> Configure project :Forge
MixinGradle is skipping eclipse integration, extension not found

FAILURE: Build failed with an exception.

* What went wrong:
Circular dependency between the following tasks:
:Forge:addMixinsToCommonRegCombinedJar
\--- :Forge:compileJava
     \--- :Forge:commonRegCombinedJar
          \--- :Forge:addMixinsToCommonRegCombinedJar (*)

(*) - details omitted (listed previously)```
LogicTechCorp commented 3 months ago

@YeoXuHang Have you found a workaround or fix for this issue?

YeoXuHang commented 3 months ago

Nope

LogicTechCorp commented 2 months ago

@Matyrobbrt Any ideas or ETA on a fix?

Matyrobbrt commented 2 months ago

Not really, this sounds like a MixinGradle issue as it unconditionally creates tasks to add mixins to any jar, and those tasks depend on compileJava for some reason.

Thelnfamous1 commented 6 days ago

I found this band-aid fix from lukebemish that worked for me:

afterEvaluate {
    tasks.named('addMixinsToCommonRegCombinedJar') {
        setDependsOn([])
        enabled = false
    }
}

I put it into my Forge build script