Could not resolve org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41

Viewed 423

I want to build a ktor based file and I got the compile error, but I don't have a clue what's wrong.

compile error:

Could not resolve org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41

these are my dependencies:

dependencies {
    implementation("io.ktor:ktor-server-core:$ktor_version")
    implementation("io.ktor:ktor-server-netty:$ktor_version")
    implementation("ch.qos.logback:logback-classic:$logback_version")

    testImplementation("io.ktor:ktor-server-tests:$ktor_version")
    implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41")
    implementation("io.ktor:ktor-auth:$ktor_version")
    implementation("io.ktor:ktor-gson:$ktor_version")
    implementation("org.litote.kmongo:kmongo:4.0.2")
    implementation("org.litote.kmongo:kmongo-coroutine:4.0.2")
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7")
    implementation("commons-codec:commons-codec:1.14")
    implementation("io.ktor:ktor-network-tls:$ktor_version")
    implementation("io.ktor:ktor-freemarker:$ktor_version")

}
3 Answers

upgrading the version of css-jvm Solved the issue.

implementation "org.jetbrains:kotlin-css-jvm:1.0.0-pre.31-kotlin-1.2.41" to implementation "org.jetbrains:kotlin-css-jvm:1.0.0-pre.122-kotlin-1.4.10"

This library is located in kotlin-js-wrappers repository. Make sure you have this repository added to your repositories list:

repositories {
    maven { url = uri("https://dl.bintray.com/kotlin/kotlin-js-wrappers/") }
}

Also, note that modern version of this library has another artifact group and name (org.jetbrains.kotlin-wrappers:kotlin-css), and is published in mavenCentral() repository.

Related