architectury-plugin icon indicating copy to clipboard operation
architectury-plugin copied to clipboard

Fabric: CompileOnly mode missing common assets

Open Flemmli97 opened this issue 9 months ago • 0 comments

Fabric runs are missing all assets from the common project when choosing to use compileOnly mode. This does not happen for (neo)forge end. Below is the snippet causing it. If i remove the parts below then it will work fine.

allprojects {
    [...]
    architectury {
        compileOnly()
    }
    [...]
}

subprojects {
    [...]

    if (project.path != ':common') {
        loom {
            mods {
                main {
                    sourceSet project.sourceSets.main
                    sourceSet project(':common').sourceSets.main
                }
            }
        }
    }
}

Flemmli97 avatar Feb 28 '25 12:02 Flemmli97