c

    CLOVIS

    2 years ago
    Hi! I'm currently updating a multiplatform project to Kotlin 1.4. I changed the following:
    plugins {
        kotlin("multiplatform") version "1.4.0" // previously 1.3.61
        kotlin("plugin.serialization") version "1.4.0" // same
    }
    and:
    val serialization_version = "1.0.0-RC"
    val commonMain by getting {
        dependencies {
            implementation(kotlin("stdlib-common"))
            implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serialization_version")
            // ktor...
        }
    }
    // other targets, with serialization-runtime-jvm, etc
    Etc. However, I'm getting this Gradle error:
    Execution failed for task ':compileKotlinJvm'.
    > Could not resolve all files for configuration ':jvmCompileClasspath'.
       > Could not find org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:1.0.0-RC.
         Required by: ...
       > Could not find org.jetbrains.kotlinx:kotlinx-serialization-runtime:1.0.0-RC.
         Required by: ...
    Unless I read something incorrectly, I think that's what the GitHub README & the documentation on kotlinlang.org say to do... Did I do something wrong?
    v

    Vampire

    2 years ago
    kotlinx-serialization-runtime
    was renamed to
    kotlinx-serialization-core
    iirchttps://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-serialization-runtime 1.0-M1 was the last published as -runtime
    c

    CLOVIS

    2 years ago
    Oh, thanks!
    I wish Gradle could have a 'this artifact was renamed to' warning 😓