On upgrading a multi-platform (JVM, JS with IR) pr...
# coroutines
r
On upgrading a multi-platform (JVM, JS with IR) project to Kotlin 1.7.10 and coroutines 1.6.4, I now get this error at build time:
Copy code
> Task :shared:kspKotlinFrontend FAILED
e: Could not find "org.jetbrains.kotlin:kotlinx-atomicfu-runtime" in [/home/raman/.local/share/kotlin/daemon]
e: java.lang.IllegalStateException: FATAL ERROR: Could not find "org.jetbrains.kotlin:kotlinx-atomicfu-runtime" in [/home/raman/.local/share/kotlin/daemon]
        at org.jetbrains.kotlin.ir.backend.js.KlibKt$toResolverLogger$1.fatal(klib.kt:106)
This issue exists, but is marked as resolved: https://github.com/Kotlin/kotlinx.coroutines/issues/3305. I don't depend on atomicfu directly -- only indirect dependencies via coroutines.
r
@itnoles That appears to be a change for 1.7.20
Not sure what you mean... coroutines (and thus I'm presuming atomicfu) worked fine with IR on 1.6.10 and coroutines 1.6.0.
Coroutines to 1.6.1 (which uses atomicfu 0.17.0 instead of 0.17.3) does not work either.
All right, figured it out -- my build was overriding the version of artifacts with group id
org.jetbrains.kotlin
to 1.7.10 -- normally this is only kotlin artifacts so that works great, but that group also includes
atomicfu
which hasn't competed moved over to the
kotlinx
group yet!