gradlex-org / jvm-dependency-conflict-resolution

Gradle plugin to improve Dependency Conflict Detection and Resolution
http://gradlex.org/jvm-dependency-conflict-resolution/
Apache License 2.0
52 stars 14 forks source link

Question about patching metadata of published components #142

Open boris-petrov opened 5 months ago

boris-petrov commented 5 months ago

Discussions are not enabled for this repo so I open an issue for that, sorry.

I'm wondering about patching metadata of published components. Especially the removeDependency - how is that different from using Gradle's exclude mechanism:

implementation('org.jobrunr:jobrunr:7.2.0') {
    exclude group: 'org.jobrunr', module: 'jobrunr-bom'
}

Why would one prefer one over the other?

A second question would be why and when would I want to use the other methods in that link - addApiDependency, addRuntimeOnlyDependency, etc.

Perhaps adding that kind of information to the README would help people like me understand what are the use-cases.

Thank you!