Does it make sense for a consumer to request multi...
# community-support
z
Does it make sense for a consumer to request multiple outgoing variants of a producer into a single resolvable configuration on the consumer side? I’m trying to share output from producer projects and a consumer project. My producer project exposes
.yaml
files (that map JIRA tickets to test casese), where each
.yaml
file one is in an outgoing variant. On the consumer side, I need to merge any of these
.yaml
files exposed
producer outgoing variants.txt
consumer resolvable configuration
In my consumer, I don’t care if the
.yaml
file is `android`/`jvm` or `debug`/`release` or standard JVM. How do I express…give me all the artifacts with
artifactType
attribute value
jira-test-case-functions-yaml
?
v
Does it make sense for a consumer to request multiple outgoing variants of a producer into a single resolvable configuration on the consumer side?
Generally, definitely, as long as the variants are not mutually exclusive by having some common capability. In your case it is not possible to depend on all the variants from one resolvable configuration, as all have the same capability.
How do I express…give me all the artifacts with artifactType attribute value jira-test-case-functions-yaml?
Iirc even with different capabilities you cannot resolve multiple variants with one dependency declaration. One dependency declaration => one resolved variant.
z
as all have the same capability
ahh, all are
unspecified
v
No, that's just the version
The whole line is the capability
👍 1
z
My solution was to add a 4th outgoing variant on the producer side, that merged the outputs of the 3 original outgoing variants, then have the consumer consume only that 4th variant. But I think it would have been nice to pick and combine what I wanted from the consumer side so it's more flexible in the future
v
Well, as I said, if those existing variants are not controlled by you, you need a feature request to make this possible. Or you need to have on the consumer side one resolvable configuration per producer variant and then combine those
Or the combining out variant as you did of course