35 lines
676 B
Plaintext
35 lines
676 B
Plaintext
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.3.0"
|
|
id("com.gradleup.shadow") version "8.3.6"
|
|
}
|
|
|
|
group = "at.mocode"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.ktor:ktor-server-core:3.0.0")
|
|
implementation("io.ktor:ktor-server-netty:3.0.0")
|
|
implementation("ch.qos.logback:logback-classic:1.5.6")
|
|
testImplementation(kotlin("test"))
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(25)
|
|
}
|
|
|
|
tasks.named<ShadowJar>("shadowJar") {
|
|
mergeServiceFiles()
|
|
manifest {
|
|
attributes["Main-Class"] = "at.mocode.MainKt"
|
|
}
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
} |