-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
45 lines (36 loc) · 1003 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import org.gradle.api.file.DuplicatesStrategy.INCLUDE
plugins {
kotlin("jvm") version "1.9.23"
}
kotlin {
jvmToolchain(21)
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-core:2.3.9")
implementation("io.ktor:ktor-server-netty:2.3.9")
implementation("io.ktor:ktor-server-html-builder:2.3.9")
implementation("ch.qos.logback:logback-classic:1.5.3")
testImplementation("io.ktor:ktor-server-test-host:2.3.9")
testImplementation("org.jetbrains.kotlin:kotlin-test:1.9.23")
}
task<JavaExec>("run") {
classpath = files(tasks.jar)
}
tasks {
jar {
manifest {
attributes("Main-Class" to "io.initialcapacity.streaming.ApplicationKt")
}
duplicatesStrategy = INCLUDE
from({
configurations.runtimeClasspath.get()
.filter { it.name.endsWith("jar") }
.map {
zipTree(it)
}
})
}
}