Skip to content

Add a notation to express that a dependency should have the same version as the component #276

@jjohannes

Description

@jjohannes

Sometimes, a dependency needs to be added that points another component of the same library. The dependency should then have the same version as the component itself if all components of the library share the same version.
In general, the component version is one of the few things that is known and accessible in a component metadata rule, but currently you cannot express that you would like to use it in our patch DSL.

For example, we could have something like this:

module("org.wiremock:wiremock") {
    addRuntimeOnlyDependency("org.wiremock:wiremock-jetty12", withComponentVersion = true)

    removeDependency("org.eclipse.jetty:jetty-server")
    // ...
}

Not sure what a good notation would be. The above is only a mockup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:enhancementNew feature or requestin:patchThings related to 'patch { }' DSL that are not about capabilities or alignment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions