Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dependencyInsight only displays primary variants silently #17065

Open
Vampire opened this issue May 4, 2021 · 1 comment
Open

dependencyInsight only displays primary variants silently #17065

Vampire opened this issue May 4, 2021 · 1 comment
Labels
a:feature A new functionality in:reporting-tasks help dependencyInsight dependencies

Comments

@Vampire
Copy link
Contributor

Vampire commented May 4, 2021

I was majorly confused when outgoingVariants showed

Variant apiElements
Attributes
    - org.gradle.libraryelements     = jar
 Secondary variants (*)
    - Variant : classes
       - Attributes
          - org.gradle.libraryelements     = classes

but dependencyInsight did claim it searched for the secondary variant, but did only find the primary one:

> Task :foo:dependencyInsight
project :
   variant "apiElements" [
      org.gradle.category            = library
      org.gradle.dependency.bundling = external
      org.gradle.usage               = java-api
      org.gradle.libraryelements     = jar (compatible with: classes)
      org.gradle.jvm.version         = 11

      Requested attributes not found in the selected variant:
         org.gradle.jvm.environment     = standard-jvm
   ]

project :
\--- compileClasspath

Unless I was told that this is a limitation of the dependencyInsight task, I thought I did something wrong and do not benefit from the secondary variant that does not need to build the jar for compiling consumers. But actually it worked as expected when compiling and the jar was not built.

So I'd like to ask for either "fixing" the dependencyInsight task for supporting secondary variants, or at least to add some hint to the output of the task (and probably to its documentation, but only the documentation is not visible enough imho) that secondary variants are not considered by that task.

@jjohannes jjohannes added a:feature A new functionality in:reporting-tasks help dependencyInsight dependencies and removed a:bug to-triage labels May 10, 2021
@stale
Copy link

stale bot commented Jun 12, 2022

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added stale and removed stale labels Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:feature A new functionality in:reporting-tasks help dependencyInsight dependencies
Projects
None yet
Development

No branches or pull requests

2 participants