kotlin-template/build.gradle.kts
2024-09-23 13:15:35 +10:00

35 lines
492 B
Plaintext

plugins {
kotlin("jvm") version "2.0.0"
application
distribution
}
application {
mainClass.set("org.example.MainKt")
layout.buildDirectory.dir("distributions/")
}
group = "org.example"
version = "0.0.1"
repositories {
mavenCentral()
}
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "org.example.MainKt"
}
}
dependencies {
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(17)
}