Misleading description of secondary variants #29295
Labels
a:documentation
Documentation content
in:dependency-declarations
variant notation attributes capability substitution
Issue type
Wrong or misleading information
Problem description
The page on understanding variant selection is about the only place secondary variants seem to be documented, and has the following to say about them:
Additionally, the output from the
outgoingVariants
task has the following:Between the two of these, I inferred that one can make a secondary variants through
configurations.myConfiguration.outgoing.variants
and that it will not be published; however, this is not the case. Secondary variants created that way appear to be published by default -- for a very simple case reproducing this, see https://gist.github.com/lukebemish/5b79f393c6a44e31311a8b8f18844c9cContext (optional)
No response
Page with the problem
https://docs.gradle.org/current/userguide/variant_model.html
The text was updated successfully, but these errors were encountered: