https://kotlinlang.org logo
#ktor
Title
# ktor
g

Gunslingor

03/15/2020, 5:23 PM
Doesn't seem like many people are active on here, questioning whether I should be using ktor instead of spring boot on this project now 😃 lol. Why doesn't the Ktor IntelliJ plug in give an option for KotlinJS... I have three.js being served up but now I need figure out the best way to use it in ktor... simple thing took me all night, I miss the old days! lol... well I suspect it will pay off in the long run. I think I undertand I need a HttpClient(Js) but I can't seem to get that library to load using the gradle line on the site.
Copy code
dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
    implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    implementation "org.jetbrains.kotlin:kotlin-stdlib-js"

    implementation "io.ktor:ktor-server-netty:$ktor_version"
    implementation "io.ktor:ktor-server-core:$ktor_version"
    implementation "io.ktor:ktor-html-builder:$ktor_version"
    implementation "io.ktor:ktor-client-core:$ktor_version"
    implementation "io.ktor:ktor-client-js:$ktor_version"
    testImplementation "io.ktor:ktor-server-tests:$ktor_version"

    implementation "ch.qos.logback:logback-classic:$logback_version"
}
Am I missing anything?
\\
SOLVED in part, was missing the ktor-client-core-jvm which has thhat Http method, now I just need to figure out where the JS comes from.