-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (46 loc) · 1.91 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
plugins {
java
id("io.freefair.lombok") version "8.6"
}
group = "com.bakdata.kafka.example"
version = "1.0.0"
repositories {
mavenCentral()
maven(url = "https://packages.confluent.io/maven/")
}
dependencies {
val kafkaVersion = "3.7.1"
implementation(group = "org.apache.kafka", name = "kafka-streams", version = kafkaVersion)
implementation(group = "org.apache.kafka", name = "kafka-clients", version = kafkaVersion)
val confluentVersion = "7.6.0"
implementation(group = "io.confluent", name = "kafka-streams-avro-serde", version = confluentVersion)
implementation(group = "com.fasterxml.jackson.core", name = "jackson-databind", version = "2.17.2")
val log4jVersion = "2.23.1"
implementation(group = "org.apache.logging.log4j", name = "log4j-slf4j2-impl", version = log4jVersion)
implementation(group = "org.slf4j", name = "slf4j-api", version = "2.0.13")
val junitVersion = "5.10.2"
testRuntimeOnly(group = "org.junit.jupiter", name = "junit-jupiter-engine", version = junitVersion)
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-api", version = junitVersion)
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter-params", version = junitVersion)
testImplementation(group = "org.assertj", name = "assertj-core", version = "3.25.3")
testImplementation(group = "net.mguenther.kafka", name = "kafka-junit", version = "3.6.0") {
exclude(group = "org.slf4j", module = "slf4j-log4j12")
}
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
tasks {
compileJava {
options.encoding = "UTF-8"
}
compileTestJava {
options.encoding = "UTF-8"
}
test {
useJUnitPlatform()
maxParallelForks = 1 // Embedded Kafka does not reliably work in parallel since Kafka 3.0
maxHeapSize = "4G"
}
}