littlerobots / version-catalog-update-plugin

Gradle plugin for updating a project version catalog
Apache License 2.0
566 stars 23 forks source link

Capability resolving #131

Closed hvisser closed 11 months ago

hvisser commented 11 months ago

Describe the issue The configuration for resolving dependencies does not specify any capabilities, therefore when an ambiguous set of capabilities is found by Gradle, the dependency cannot be resolved

Steps to reproduce

[libraries]
foundation = "androidx.compose.foundation:foundation:1.5.4"

Stacktrace

Cannot choose between the following variants of <Info>androidx.compose.foundation:foundation:1.6.0-beta03</Info>:
  - desktopRuntimeElements-published
  - releaseRuntimeElements-published
All of them match the consumer attributes:
  - Variant 'desktopRuntimeElements-published' capability androidx.compose.foundation:foundation:1.6.0-beta03:
      - Unmatched attributes:
          - Provides <Info>org.gradle.category 'library'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.libraryelements 'jar'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.status 'release'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.usage 'java-runtime'</Info> but the consumer didn't ask for it
          - Provides <Info>org.jetbrains.kotlin.platform.type 'jvm'</Info> but the consumer didn't ask for it
  - Variant 'releaseRuntimeElements-published' capability androidx.compose.foundation:foundation:1.6.0-beta03:
      - Unmatched attributes:
          - Provides <Info>org.gradle.category 'library'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.status 'release'</Info> but the consumer didn't ask for it
          - Provides <Info>org.gradle.usage 'java-runtime'</Info> but the consumer didn't ask for it
          - Provides <Info>org.jetbrains.kotlin.platform.type 'androidJvm'</Info> but the consumer didn't ask for it