I'm trying to test the HTML Application, my build.gradle
dependencies are:
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
compile "org.jetbrains.ktor:ktor-core:$ktor_version"
compile 'org.jetbrains.kotlinx:kotlinx-html:0.6.4'
compile "org.jetbrains.ktor:ktor-netty:$ktor_version"
compile "org.apache.commons:commons-email:1.4"
compile "org.slf4j:slf4j-simple:1.7.25"
compile "ch.qos.logback:logback-classic:1.2.1"
testCompile group: 'junit', name: 'junit', version: '4.12'
}
I got the below error while running gradle build:
Could not find org.jetbrains.kotlinx:kotlinx-html:0.6.4
what is the error here?
Here you can find instructions on including kotlinx. What you need to do is to add appropriate repository:
repository {
jcenter()
}
and dependencies:
dependencies {
compile 'org.jetbrains.kotlinx:kotlinx-html-jvm:0.6.4' // server side dev
compile 'org.jetbrains.kotlinx:kotlinx-html-js:0.6.4' // client side dev
}