Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sources of dependencies with capabilities not properly located #1105

Open
lukebemish opened this issue Apr 23, 2024 · 0 comments
Open

Sources of dependencies with capabilities not properly located #1105

lukebemish opened this issue Apr 23, 2024 · 0 comments

Comments

@lukebemish
Copy link
Contributor

lukebemish commented Apr 23, 2024

If you depend on an alternative variant of a module by capability -- for instance,

dependencies {
    modImplementation("dev.lukebemish:mymodtest:0.1.0") {
    capabilities {
            requireCapability("dev.lukebemish:mymodtest-otherfeature")
        }
    }
}

Loom will correctly locate and remap the main jar, but will not correctly locate and remap the sources jar for the module, instead locating that for the main feature of the module -- meaning that correct sources will not be available in IntelliJ at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant