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

Figure out how to deal with variants #129

Closed
hvisser opened this issue Dec 22, 2023 · 0 comments · Fixed by #132
Closed

Figure out how to deal with variants #129

hvisser opened this issue Dec 22, 2023 · 0 comments · Fixed by #132

Comments

@hvisser
Copy link
Contributor

hvisser commented Dec 22, 2023

Describe the issue
For modules that have variants (like kmp modules) Gradle will resolve the platform specific version and return the specific module in the resolved configuration. This leads to an error when the plugin is trying to map the resolved version, and it might also other problems since the original module specified in the TOML file is not actually in any of the resolved configurations.

Steps to reproduce
Add a library entry for apollo-api in the version catalog:

[libraries]
apollo-api = "com.apollographql.apollo3:apollo-api:3.8.2"

Stacktrace

* What went wrong:
Execution failed for task ':versionCatalogUpdateStables'.
> Could not resolve all dependencies for configuration ':detachedConfiguration2'.
   > There was an error while evaluating a component selection rule for com.apollographql.apollo3:apollo-api-jvm:3.8.2.
      > Required value was null.

It's probably OK in terms of version to take the version of the redirected artifact, if it is possible to figure out that that redirection/substitution happened.

@hvisser hvisser changed the title Figure out how to deal with artifacts that "redirect" to platform specific ones Figure out how to deal with variants Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant