plugins {
    id "org.jetbrains.kotlin.multiplatform"
    id "org.jetbrains.kotlin.plugin.serialization"
}

apply from: "$mppJavaProjectPresetPath"

kotlin {
    sourceSets {
        commonMain {
            dependencies {
                api internalProject("micro_utils.ktor.common")
                api internalProject("micro_utils.coroutines")
            }
        }

        jvmMain {
            dependencies {
                api "io.ktor:ktor-server:$ktor_version"
                api "io.ktor:ktor-server-cio:$ktor_version"
                api "io.ktor:ktor-server-host-common:$ktor_version"
                api "io.ktor:ktor-websockets:$ktor_version"
            }
        }
    }
}