Code Monkey home page Code Monkey logo

Comments (3)

autonomousapps avatar autonomousapps commented on September 25, 2024

Thanks for the report.

from dependency-analysis-gradle-plugin.

autonomousapps avatar autonomousapps commented on September 25, 2024

For the record, here's the error:

./gradlew testCodeCoverageReport

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':testCodeCoverageReport'.
> Could not resolve all task dependencies for configuration ':aggregateCodeCoverageReportResults'.
   > The consumer was configured to find a component of category 'verification', as well as attribute 'artifactType' with value 'binary', attribute 'org.gradle.testsuite.type' with value 'unit-test', attribute 'org.gradle.verificationtype' with value 'jacoco-coverage'. However we cannot choose between the following variants of project :subproject-a:
       - projectHealthElements
       - resolvedDepsElements
     All of them match the consumer attributes:
       - Variant 'projectHealthElements' capability gradle-jacoco-reproducer:subproject-a:unspecified:
           - Unmatched attributes:
               - Doesn't say anything about artifactType (required 'binary')
               - Doesn't say anything about its component category (required a component of category 'verification')
               - Doesn't say anything about org.gradle.testsuite.type (required 'unit-test')
               - Doesn't say anything about org.gradle.verificationtype (required 'jacoco-coverage')
               - Provides attribute 'dagp.internal.artifacts' with value 'project-health' but the consumer didn't ask for it
       - Variant 'resolvedDepsElements' capability gradle-jacoco-reproducer:subproject-a:unspecified:
           - Unmatched attributes:
               - Doesn't say anything about artifactType (required 'binary')
               - Doesn't say anything about its component category (required a component of category 'verification')
               - Doesn't say anything about org.gradle.testsuite.type (required 'unit-test')
               - Doesn't say anything about org.gradle.verificationtype (required 'jacoco-coverage')
               - Provides attribute 'dagp.internal.artifacts' with value 'resolved-deps' but the consumer didn't ask for it
   > The consumer was configured to find a component of category 'verification', as well as attribute 'artifactType' with value 'binary', attribute 'org.gradle.testsuite.type' with value 'unit-test', attribute 'org.gradle.verificationtype' with value 'jacoco-coverage'. However we cannot choose between the following variants of project :subproject-b:
       - projectHealthElements
       - resolvedDepsElements
     All of them match the consumer attributes:
       - Variant 'projectHealthElements' capability gradle-jacoco-reproducer:subproject-b:unspecified:
           - Unmatched attributes:
               - Doesn't say anything about artifactType (required 'binary')
               - Doesn't say anything about its component category (required a component of category 'verification')
               - Doesn't say anything about org.gradle.testsuite.type (required 'unit-test')
               - Doesn't say anything about org.gradle.verificationtype (required 'jacoco-coverage')
               - Provides attribute 'dagp.internal.artifacts' with value 'project-health' but the consumer didn't ask for it
       - Variant 'resolvedDepsElements' capability gradle-jacoco-reproducer:subproject-b:unspecified:
           - Unmatched attributes:
               - Doesn't say anything about artifactType (required 'binary')
               - Doesn't say anything about its component category (required a component of category 'verification')
               - Doesn't say anything about org.gradle.testsuite.type (required 'unit-test')
               - Doesn't say anything about org.gradle.verificationtype (required 'jacoco-coverage')
               - Provides attribute 'dagp.internal.artifacts' with value 'resolved-deps' but the consumer didn't ask for it

And I have confirmed this error does not appear in Gradle 8.6. I wonder if it's a Gradle bug?

from dependency-analysis-gradle-plugin.

autonomousapps avatar autonomousapps commented on September 25, 2024

Gradle suggests that DAGP could add a custom Category, and that should be sufficient. They are surprised it hasn't broken before now 🤔

from dependency-analysis-gradle-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.