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

40 lines
977 B
Plaintext
Raw Normal View History

2020-11-03 18:54:52 +03:00
plugins {
2021-04-05 17:41:36 +03:00
id("ru.mipt.npm.gradle.mpp")
2022-05-24 21:28:42 +03:00
id("ru.mipt.npm.gradle.native")
2021-04-05 17:41:36 +03:00
`maven-publish`
2020-11-03 18:54:52 +03:00
}
2021-06-21 14:09:59 +03:00
description = """
Magix endpoint (client) based on RSocket
""".trimIndent()
2020-11-03 18:54:52 +03:00
kscience {
2021-06-21 14:09:59 +03:00
useSerialization {
2020-11-03 18:54:52 +03:00
json()
}
}
val ktorVersion: String by rootProject.extra
val rsocketVersion: String by rootProject.extra
kotlin {
sourceSets {
commonMain {
dependencies {
2021-06-21 14:09:59 +03:00
api(projects.magix.magixApi)
2020-11-03 18:54:52 +03:00
implementation("io.ktor:ktor-client-core:$ktorVersion")
2022-05-23 23:30:38 +03:00
implementation("io.rsocket.kotlin:rsocket-ktor-client:$rsocketVersion")
}
}
2022-06-05 10:28:46 +03:00
jvmMain {
dependencies {
implementation("io.rsocket.kotlin:rsocket-transport-ktor-tcp:$rsocketVersion")
}
}
linuxX64Main{
dependencies {
2022-05-23 23:30:38 +03:00
implementation("io.rsocket.kotlin:rsocket-transport-ktor-tcp:$rsocketVersion")
2020-11-03 18:54:52 +03:00
}
}
}
}