code-examples/2025/01/kotlin_demo2/build.gradle.kts

20 lines
365 B
Plaintext
Raw Normal View History

import java.io.*
plugins {
kotlin("jvm") version "2.1.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation("ch.qos.logback:logback-classic:1.5.16")
}
tasks.register<JavaExec>("runApp") {
classpath = sourceSets["main"].runtimeClasspath
mainClass = "ProgramKt"
standardInput = ByteArrayInputStream("5\r\n".toByteArray(Charsets.UTF_8))
}