Christoph Hock
05/07/2021, 6:50 PMimport 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:
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>") }
}
}
turansky
05/08/2021, 9:57 AM1.5.0
support will be released in the last week of MayChristoph Hock
05/08/2021, 9:58 AMturansky
05/08/2021, 10:03 AM1.5.4
works with following versions:
Serialization - 1.1.0
Coroutines - 1.4.3
HTML - 0.7.3
+ Kotlin 1.5.0
Christoph Hock
05/08/2021, 10:08 AMBertram Kirsch
05/16/2021, 11:56 AM