40 lines
801 B
Plaintext
40 lines
801 B
Plaintext
plugins {
|
|
kotlin("jvm") version "2.3.0"
|
|
}
|
|
|
|
group = "su.sonoma"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(kotlin("test"))
|
|
implementation("io.ktor:ktor-network:3.1.3")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2")
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(25)
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
tasks.register<JavaExec>("runServer") {
|
|
group = "app"
|
|
description = "Run server"
|
|
classpath = sourceSets["main"].runtimeClasspath
|
|
mainClass.set("su.sonoma.MainKt")
|
|
args = listOf("server")
|
|
}
|
|
|
|
tasks.register<JavaExec>("runClient") {
|
|
group = "app"
|
|
description = "Run client"
|
|
classpath = sourceSets["main"].runtimeClasspath
|
|
mainClass.set("su.sonoma.MainKt")
|
|
args = listOf("client")
|
|
} |