-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
60 lines (49 loc) · 1.62 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
plugins {
kotlin("jvm")
id("io.ktor.plugin")
id("io.gitlab.arturbosch.detekt")
id("com.github.ben-manes.versions")
}
val kotlin_version: String by project
val ktor_version: String by project
val logback_version: String by project
val jackson_version: String by project
val strikt_version: String by project
val detekt_version: String by project
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("io.ktor:ktor-server-core:$ktor_version")
implementation("io.ktor:ktor-server-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-serialization-jackson:$ktor_version")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
testImplementation("io.strikt:strikt-core:$strikt_version")
testImplementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:$detekt_version")
}
kotlin {
jvmToolchain(17)
}
tasks {
test {
dependsOn("cleanTest")
testLogging {
events("passed", "skipped", "failed")
}
}
}
ktor {
fatJar {
archiveFileName.set("developer-joyofenergy-kotlin-all.jar")
}
}