When upgrading my ktor version to anything greater...
# ktor
c
When upgrading my ktor version to anything greater than 1.5.0 I am getting a 404 error for every page i have defined. Does anyone have a clue why? My build.gradle.kts
Copy code
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins{
    kotlin("jvm")
    application
}

dependencies {
    testImplementation(kotlin("test-junit5"))
    testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
    testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.0")
    implementation("io.ktor:ktor-server-netty:1.5.3")
    implementation("io.ktor:ktor-html-builder:1.5.3")
    implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.7.2")
    implementation("ch.qos.logback:logback-classic:1.2.3")
    //implementation(project(":shared"))
}

tasks.test {
    useJUnitPlatform()
}

tasks.withType<Copy>().named("processResources") {
    from(project(":client").tasks.named("browserDistribution"))
}

tasks.withType<KotlinCompile>() {
    kotlinOptions.jvmTarget = "1.8"
}

application {
    mainClassName = "de.chris.webide.server.MainKt"
}
repositories {
    mavenCentral()
}
My build.gradle.kts in the directory above:
Copy code
plugins {
    kotlin("multiplatform") version "1.5.0" apply false
    kotlin("plugin.serialization") version "1.5.0" apply false
}

allprojects{
    group = "de.chris.webide"
    version = "1.0-SNAPSHOT"

    repositories{
        jcenter()
        mavenCentral()
        maven { url = uri("<https://dl.bintray.com/kotlin/kotlinx>") }
        maven { url = uri("<https://dl.bintray.com/kotlin/ktor>") }
    }
}
Error in browser when navigating to any page
t
Ktor with Kotlin
1.5.0
support will be released in the last week of May
c
Intresting since ktor version 1.5.3 is list as recommended version for kotlin 1.5.0 https://kotlinlang.org/docs/releases.html#release-details
t
Ktor block all described versions ­čś× Ktor
1.5.4
works with following versions: Serialization -
1.1.0
Coroutines -
1.4.3
HTML -
0.7.3
+ Kotlin
1.5.0
New versions locked by Ktor
c
Okay looks like a miss communication between two different departments then.
b
When I upgraded, I had the same experience. Maybe you ran into the same problem like me: https://youtrack.jetbrains.com/issue/KTOR-2278