Sorry if this is the wrong place for this. I have ...
# multiplatform
z
Sorry if this is the wrong place for this. I have a bunch of kotlin multiplatform libraries, and they all target kotlin
2.0.0-RC2
without any issues. When I try to upgrade one of my apps though, it just seems to downgrade to kotlin 1.9.23. Ive checked out the
gradlew dependency
output and while its too long to read line by line.. I cant find anything that points to the version being downgraded, just the opposite: 1.9.23 -> 2.0.0-RC2. I can work around the issue with the code below, but Id much rather figure out the underlying issue. Any ideas?
Copy code
subprojects {
    configurations.all {
        resolutionStrategy {
            eachDependency { details ->
                if (details.requested.group == "org.jetbrains.kotlin") {
                    details.useVersion("2.0.0-RC2")
                }
            }
        }
    }
}
I asked chat-gpt to analyze the file and this is the only dependency that doesnt mention being "upgraded" to 2.0.0-RC2. This seems to be the new compose-compiler plugin, which ironically doesnt have a 1.9.23 release (afaik), and the error Im seeing when trying to build my project specifically mentions that this dependency cannot be resolved (should be 2.0.0-RC2).
Copy code
kotlinBuildToolsApiClasspath
\--- org.jetbrains.kotlin:kotlin-build-tools-impl:1.9.23
     +--- org.jetbrains.kotlin:kotlin-build-tools-api:1.9.23
     +--- org.jetbrains.kotlin:kotlin-stdlib:1.9.23
     |    \--- org.jetbrains:annotations:13.0
     +--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.23
     |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.9.23 (*)
     |    +--- org.jetbrains.kotlin:kotlin-script-runtime:1.9.23
     |    +--- org.jetbrains.kotlin:kotlin-reflect:1.6.10
     |    +--- org.jetbrains.kotlin:kotlin-daemon-embeddable:1.9.23
     |    \--- org.jetbrains.intellij.deps:trove4j:1.0.20200330
     \--- org.jetbrains.kotlin:kotlin-compiler-runner:1.9.23
          +--- org.jetbrains.kotlin:kotlin-build-common:1.9.23
          +--- org.jetbrains.kotlin:kotlin-daemon-client:1.9.23
          +--- org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.5.0
          \--- org.jetbrains.kotlin:kotlin-compiler-embeddable:1.9.23 (*)