Join Slack
Powered by
Whats the cleanest way to substitute an external d...
# community-support
c
Chris
05/30/2024, 2:30 PM
Whats the cleanest way to substitute an external dependency with a list of equivalent dependencies - e.g. replacing an uber-jar with it’s constituent pieces. Is it possible without having to create a module that depends on the list?
t
Thomas Broyer
05/30/2024, 2:55 PM
You can probably use a dependency metadata rule to remove the uber-jar artifact from the dependency and add transitive dependencies to the constituent pieces.
https://docs.gradle.org/current/userguide/component_metadata_rules.html
c
Chris
05/30/2024, 2:56 PM
hmm… that would have to be done at the consumer though right?
Chris
05/30/2024, 2:58 PM
ohh… sorry - no… you’re right I hadn’t htough about that
Chris
05/30/2024, 2:58 PM
let me try it
Chris
05/30/2024, 4:03 PM
Hmmm…
https://github.com/gradle/gradle/issues/11974
3
Views
Open in Slack
Previous
Next