Выгрузка всех файлов

This commit is contained in:
2026-06-11 13:18:09 +03:00
parent 3a68b2452e
commit 74b18c6138
12 changed files with 443 additions and 0 deletions
+42
View File
@@ -0,0 +1,42 @@
plugins {
kotlin("jvm") version "2.1.10"
application
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
implementation("com.beust:klaxon:5.5")
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}
// "run" task
application {
mainClass.set("org.example.MainKt") // Replace with your actual main class
}
tasks.register<JavaExec>("runWithInput") {
group = "application"
mainClass.set("org.server.MainKt")
classpath = sourceSets["main"].runtimeClasspath
standardInput = System.`in` // 👈 enables readln() or readLine()
}
tasks.register<JavaExec>("runWithInputClient") {
group = "application"
mainClass.set("org.client.ClientKt")
classpath = sourceSets["main"].runtimeClasspath
standardInput = System.`in` // 👈 enables readln() or readLine()
}