controls-kt/magix/magix-rsocket/build.gradle.kts

36 lines
875 B
Plaintext

plugins {
id("ru.mipt.npm.gradle.mpp")
id("ru.mipt.npm.gradle.native")
`maven-publish`
}
description = """
Magix endpoint (client) based on RSocket
""".trimIndent()
kscience {
useSerialization {
json()
}
}
val ktorVersion: String by rootProject.extra
val rsocketVersion: String by rootProject.extra
kotlin {
sourceSets {
commonMain {
dependencies {
api(projects.magix.magixApi)
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.rsocket.kotlin:rsocket-ktor-client:$rsocketVersion")
}
}
jvmMain{
dependencies{
implementation("io.ktor:ktor-network:$ktorVersion")
implementation("io.rsocket.kotlin:rsocket-transport-ktor-tcp:$rsocketVersion")
}
}
}
}