Skip to content

Option for merged modules to automatically declare uses for existing provides #200

@crschnick

Description

@crschnick

I'm using the following configuration:

extraJavaModuleInfo {
    module("io.modelcontextprotocol.sdk:mcp-core", "io.modelcontextprotocol.sdk.mcp") {
        mergeJar("io.modelcontextprotocol.sdk:mcp-json")
        mergeJar("io.modelcontextprotocol.sdk:mcp-json-jackson2")
        overrideModuleName()
        exportAllPackages()
        requires("com.fasterxml.jackson.core")
        requires("com.fasterxml.jackson.databind")
        requires("com.fasterxml.jackson.annotation")
        requires("org.slf4j")
        requires("reactor.core")
        requires("org.reactivestreams")
        requires("com.networknt.schema")
    }
}

I would have expected the module to automatically declare the uses entries as it does for provides entries for the same module. But it doesn't, I have to add

        uses("io.modelcontextprotocol.json.McpJsonMapperSupplier")
        uses("io.modelcontextprotocol.json.schema.JsonSchemaValidatorSupplier")

manually. Is this expected or can this be improved?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions