-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
72 lines (62 loc) · 1.66 KB
/
build.gradle.kts
File metadata and controls
72 lines (62 loc) · 1.66 KB
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
plugins {
kotlin("jvm") version "2.2.20"
kotlin("plugin.serialization") version "2.2.20"
application
id("jacoco")
}
group = "dev.typetype"
version = "0.1.0"
repositories {
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-core-jvm:3.4.1")
implementation("io.ktor:ktor-server-netty-jvm:3.4.1")
implementation("io.ktor:ktor-server-call-logging-jvm:3.4.1")
implementation("io.ktor:ktor-server-content-negotiation-jvm:3.4.1")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:3.4.1")
implementation("io.ktor:ktor-server-status-pages-jvm:3.4.1")
implementation("org.postgresql:postgresql:42.7.8")
implementation("com.zaxxer:HikariCP:6.3.0")
implementation("redis.clients:jedis:6.1.0")
implementation("software.amazon.awssdk:s3:2.31.69")
implementation("ch.qos.logback:logback-classic:1.5.20")
testImplementation(kotlin("test"))
testImplementation("io.mockk:mockk:1.13.12")
}
application {
mainClass = "dev.typetype.downloader.MainKt"
}
kotlin {
jvmToolchain(21)
}
tasks.test {
useJUnitPlatform()
finalizedBy(tasks.jacocoTestReport)
}
jacoco {
toolVersion = "0.8.12"
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required.set(true)
html.required.set(true)
csv.required.set(false)
}
}
tasks.jacocoTestCoverageVerification {
dependsOn(tasks.test)
violationRules {
rule {
limit {
counter = "LINE"
value = "COVEREDRATIO"
minimum = "0.05".toBigDecimal()
}
}
}
}
tasks.check {
dependsOn(tasks.jacocoTestCoverageVerification)
}