-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
89 lines (73 loc) · 3.05 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
79
80
81
82
83
84
85
86
87
88
89
import info.solidsoft.gradle.pitest.PitestPluginExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.21"
id("io.quarkus") version "2.11.1.Final"
id("info.solidsoft.pitest") version "1.7.4"
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
id("org.jetbrains.kotlin.plugin.allopen") version "1.6.21"
}
group = "transaction"
version = "latest"
repositories {
mavenCentral()
maven(url = "https://packages.confluent.io/maven")
}
dependencies {
implementation("org.flywaydb:flyway-mysql")
implementation("org.flywaydb:flyway-core:9.0.2")
implementation("com.lectra:koson:1.2.4")
implementation("org.jdbi:jdbi3-kotlin:3.32.0")
implementation("org.apache.kafka:kafka-streams:7.2.1-ccs")
implementation("io.confluent:kafka-json-serializer:7.2.1")
implementation("io.confluent:kafka-streams-avro-serde:7.2.1")
implementation("io.confluent:kafka-json-schema-serializer:7.2.1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("com.fasterxml.jackson.core:jackson-annotations:2.13.3")
implementation("com.github.kittinunf.fuel:fuel:2.3.1")
implementation("com.github.kittinunf.fuel:fuel-jackson:2.3.1")
implementation("io.quarkus:quarkus-arc")
implementation("io.quarkus:quarkus-kotlin")
implementation("io.quarkus:quarkus-flyway")
implementation("io.quarkus:quarkus-resteasy")
implementation("io.quarkus:quarkus-jdbc-mysql")
implementation("io.quarkus:quarkus-config-yaml")
implementation("io.quarkus:quarkus-resteasy-jackson")
implementation(enforcedPlatform("io.quarkus:quarkus-bom:2.11.1.Final"))
testImplementation(kotlin("test"))
testImplementation("io.mockk:mockk:1.12.5")
testImplementation("org.testcontainers:mysql")
testImplementation("io.quarkus:quarkus-junit5")
testImplementation("io.strikt:strikt-arrow:0.34.1")
testImplementation("com.jayway.jsonpath:json-path:2.7.0")
testImplementation("com.tngtech.archunit:archunit-junit5:0.23.1")
testImplementation("org.apache.kafka:kafka-streams-test-utils:7.2.1-ccs")
}
allOpen {
annotation("javax.ws.rs.Path")
annotation("javax.enterprise.context.Dependent")
annotation("javax.enterprise.context.ApplicationScoped")
}
pitest {
configure<PitestPluginExtension> {
mutators.set(
setOf(
"VOID_METHOD_CALLS"
)
)
avoidCallsTo.set(setOf("arrow.core.computations", "kotlin.jvm.internal"))
targetClasses.set(setOf("domain.*"))
mutationThreshold.set(100)
timestampedReports.set(false)
junit5PluginVersion.set("0.15")
}
}
tasks.test { useJUnitPlatform() }
tasks.check { dependsOn(tasks.pitest) }
tasks.pitest { dependsOn(tasks.test) }
tasks.runKtlintCheckOverMainSourceSet { dependsOn(tasks.quarkusGenerateCode) }
tasks.runKtlintCheckOverTestSourceSet { dependsOn(tasks.quarkusGenerateCodeTests) }
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "18"
kotlinOptions.freeCompilerArgs = listOf("-Xjsr305=strict")
}