-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
60 lines (49 loc) · 1.61 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 kotlinVersion: String by project
val ktorVersion: String by project
val logbackVersion: String by project
val jacksonVersion: String by project
val striktVersion: String by project
val detektVersion: String by project
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
implementation("io.ktor:ktor-server-core:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-jackson:$ktorVersion")
implementation("com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
testImplementation("io.ktor:ktor-server-test-host:$ktorVersion")
testImplementation("io.strikt:strikt-core:$striktVersion")
testImplementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion")
}
kotlin {
jvmToolchain(21)
}
tasks {
test {
dependsOn("cleanTest")
testLogging {
events("passed", "skipped", "failed")
}
}
}
ktor {
fatJar {
archiveFileName.set("developer-joyofenergy-kotlin-all.jar")
}
}