littlerobots/version-catalog-update-plugin

Capability resolving

hvisser opened this issue · 0 comments

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