Slackbot
09/29/2022, 7:06 PMCristianGM
09/29/2022, 7:15 PMoutgoingVariants
task
Still think I would enjoy having some documentation about attributes (not saying it doesn't exist, just didn't found it)CristianGM
09/29/2022, 7:24 PMCristianGM
09/29/2022, 7:32 PMThomas Broyer
09/30/2022, 9:08 AMVampire
09/30/2022, 11:02 AMoutgoingVariants
, then yes, it only shows the artifacts as the name suggests, not the dependencies.
And yes, if you select the same consumable configuration using the attributes it should result in the same result, yes. You can even set the attributes on the dependency individually if you don't want those attributes for all dependencies in that someClasspath
configuration.CristianGM
09/30/2022, 11:04 AMVampire
09/30/2022, 11:07 AMoutgoingVariants
which are actually present.CristianGM
09/30/2022, 11:08 AMCristianGM
09/30/2022, 11:13 AMWhat would be the best solution?I guess attributes has the advantage that if we use for example Kotlin multiplatform and they have another name for the configuration it won't matter..we only require a configuration with those attributes. Small advantage I guess (over using a hardcoded configuration name)
Vampire
09/30/2022, 11:19 AM@Vampire I expected apiElements and runtimeElements to show different artifacts in the outgoingVariants report, that's what confused me even moreWhy would you expect different artifacts? They should be the same artifacts, but have different dependencies. That's the result of
api
vs. implementation
vs. runtimeOnly
.
Small advantage I guess (over using a hardcoded configuration name)Well, using configuration name is the old way, using attributes is the new way. Using configuration name also only works for inter-project dependencies within one build, attributes work also with published libraries (for published variants only of course).
CristianGM
09/30/2022, 11:20 AMVampire
09/30/2022, 11:22 AMoutgoingVariants
is a producer-side thing.
And from the producer PoV he has one artifact and X dependencies on that variant. 🙂CristianGM
09/30/2022, 11:26 AM