-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
78 lines (65 loc) · 2.34 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import kotlinx.kover.api.DefaultIntellijEngine
import kotlinx.kover.api.DefaultJacocoEngine
val ktor_version: String by project // = 2.2.4
val kotlin_version: String by project // = "1.8.0"
val logback_version: String by project // = "1.2.11"
val datetime_version: String by project // = "0.4.0"
val exposed_version: String by project
val h2_version: String by project
val hikaricp_version: String by project
plugins {
kotlin("jvm") version "1.8.10"
id("io.ktor.plugin") version "2.2.4"
kotlin("plugin.serialization") version "1.8.10"
id("org.jetbrains.kotlinx.kover") version "0.6.1"
}
group = "com.kcchatapp"
version = "0.0.1"
application {
mainClass.set("com.example.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-core")
implementation("io.ktor:ktor-server-content-negotiation")
implementation("io.ktor:ktor-serialization-kotlinx-json")
implementation("io.ktor:ktor-server-websockets")
implementation("io.ktor:ktor-server-netty")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:$datetime_version")
implementation("io.ktor:ktor-client-encoding:2.2.4")
testImplementation("io.ktor:ktor-server-tests")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testImplementation("org.assertj:assertj-core:3.22.0")
testImplementation("org.awaitility:awaitility:4.1.1")
testImplementation("io.ktor:ktor-server-test-host")
testImplementation("io.ktor:ktor-client-websockets")
implementation("io.ktor:ktor-client-content-negotiation")
}
kover {
engine.set(DefaultIntellijEngine)
// engine.set(DefaultJacocoEngine)
verify {
rule {
name = "Minimal line coverage rate in percents"
bound {
minValue = 5
}
}
}
filters {
classes {
includes += listOf("com.kcchatapp.*")
excludes += listOf("com.kcchatapp.db.*")
}
}
}
tasks.test {
useJUnitPlatform()
}