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

KT 1.7.20 compatible #248

Closed
xtexChooser opened this issue Sep 29, 2022 · 8 comments
Closed

KT 1.7.20 compatible #248

xtexChooser opened this issue Sep 29, 2022 · 8 comments
Assignees
Labels

Comments

@xtexChooser
Copy link

> Could not resolve all files for configuration ':classpath'.
   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.0.
     Required by:
         project : > org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.18.3 > org.jetbrains.kotlin:atomicfu:1.7.0
      > Multiple incompatible variants of org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.20 were selected:
           - Variant org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.20 variant gradle70RuntimeElements has attributes {org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.plugin.api-version=7.0, org.gradle.status=release, org.gradle.usage=java-runtime}
           - Variant org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.20 variant gradle71RuntimeElements has attributes {org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.jvm.environment=standard-jvm, org.gradle.jvm.version=8, org.gradle.libraryelements=jar, org.gradle.plugin.api-version=7.1, org.gradle.status=release, org.gradle.usage=java-runtime}

* 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.


Maybe it can be solved by updating dependencies?

@diesieben07
Copy link

The problem is Kotlin 1.7.20, not Gradle 7.5.1.

@xtexChooser xtexChooser changed the title Gradle 7.5.1 compatible KT 1.7.20 compatible Oct 1, 2022
@xtexChooser
Copy link
Author

The problem is Kotlin 1.7.20, not Gradle 7.5.1.

oh thanks for remind!

@Thomas-Vos
Copy link

Same issue here with some more details: https://kotlinlang.slack.com/archives/C0KLZSCHF/p1662725020951299

I found a workaround which you can use with caution (it works for me):

Replace the following:

classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.18.3")

with

classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.18.3") {
    exclude("org.jetbrains.kotlin", "kotlin-gradle-plugin-api")
}

My project syncs, builds, and runs correctly now.

@headsvk
Copy link

headsvk commented Oct 10, 2022

According to the plugin details, it has a runtime dependency on org.jetbrains.kotlin:atomicfu:1.7.0 which can be updated to 1.7.20. However, it looks like this update doesn't work with Gradle automatically.

I fixed this by adding org.jetbrains.kotlin:atomicfu:1.7.20 as another classpath dependency.

@mvicsokolova
Copy link
Collaborator

Sorry, for the late answer to this issue.
Yes, the problem was in the runtime dependency to org.jetbrains.kotlin:atomicfu:1.7.0 that should have been updated to 1.7.20

It will be fixed in the next kotlinx.atomicfu release 0.18.5, that will be published next week (with Kotlin updated to 1.7.20) .

@revintec
Copy link

@mvicsokolova Hi, it seems that 0.18.5 is still not released, will it be released in this week?

@mvicsokolova
Copy link
Collaborator

Hi! Yes, hopefully it will be released today.

@mvicsokolova
Copy link
Collaborator

0.18.5 is released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants