jvm-dependency-conflict-resolution icon indicating copy to clipboard operation
jvm-dependency-conflict-resolution copied to clipboard

Question about patching metadata of published components

Open boris-petrov opened this issue 8 months ago • 0 comments

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!

boris-petrov avatar Jun 03 '24 21:06 boris-petrov