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

Could not resolve org.jetbrains.kotlin:atomicfu:1.7.0. #234

Closed
danny-su opened this issue Jun 24, 2022 · 1 comment
Closed

Could not resolve org.jetbrains.kotlin:atomicfu:1.7.0. #234

danny-su opened this issue Jun 24, 2022 · 1 comment

Comments

@danny-su
Copy link

Could not determine the dependencies of task ':data:jsPackageJson'.

Could not resolve all dependencies for configuration ':data:jsNpm'.
Could not resolve org.jetbrains.kotlin:atomicfu:1.7.0.
Required by:
project :data
> No matching variant of org.jetbrains.kotlin:atomicfu:1.7.0 was found. The consumer was configured to find a usage of 'kotlin-runtime' of a library, preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js', attribute 'org.jetbrains.kotlin.js.compiler' with value 'ir' but:
- Variant 'apiElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a library, preferably optimized for standard JVMs:
- Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Variant 'gradle70ApiElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a library, preferably optimized for standard JVMs:
- Incompatible because this component declares an API of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a usage of 'kotlin-runtime' of a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Variant 'gradle70JavadocElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a runtime of a component:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'js')
- Variant 'gradle70RuntimeElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a runtime of a library, preferably optimized for standard JVMs:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Variant 'gradle70SourcesElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a runtime of a component:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'js')
- Variant 'javadocElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a runtime of a component:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'js')
- Variant 'runtimeElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a runtime of a library, preferably optimized for standard JVMs:
- Incompatible because this component declares a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'jvm' and the consumer needed a component, as well as attribute 'org.jetbrains.kotlin.platform.type' with value 'js'
- Other compatible attribute:
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Variant 'sourcesElements' capability org.jetbrains.kotlin:atomicfu:1.7.0 declares a runtime of a component:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java environment (preferred optimized for non-jvm)
- Doesn't say anything about org.jetbrains.kotlin.js.compiler (required 'ir')
- Doesn't say anything about org.jetbrains.kotlin.platform.type (required 'js')

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

@mvicsokolova
Copy link
Collaborator

This problem with unresolved dependencies was fixed in Kotlin 1.7.10 via correct publishing of compiler plugin runtime module and supported since kotlinx.atomicfu 0.18.2.

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

No branches or pull requests

2 participants