Skip to content

[Feature] support fabric's loom fabricApi module with in dependency block #16

@Skidamek

Description

@Skidamek

Hi, I am transforming my project from architectury loom to the modstitch it seems to mostly work great (with the patches applied from latest commits - please, upload snapshots to the maven)
However what i could do with the architectury loom or just plain fabric loom is to JiJ specific fabric modules easily like:

setOf(
    "fabric-api-base",
    "fabric-resource-loader-v0",
    "fabric-registry-sync-v0",
    "fabric-networking-api-v1"
).forEach {
    include(modImplementation(fabricApi.module(it, property("fabric_api_version") as String)))
}

I tried that within dependencies.modstitch.loom but no luck. It prints Unresolved reference: fabricApi error.

It wouldn't be needed if fabric api modules would inherit the same version number as the whole fabric api bundle, unfortunately the modules use some quite random to me number versions like e.g. fabric-api-base module within fabric api 0.127.1+1.21.6 has version 0.4.63. It would be a pain to manually check each version for each module in multi-version project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions