forked from schroedermatt/stream-processing-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (60 loc) · 2.25 KB
/
build.gradle
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
plugins {
id 'application'
id 'java'
id 'groovy'
id 'org.springframework.boot' version '2.7.1'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group 'org.improving.workshop'
version '1.0-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven"
}
maven { url 'https://jitpack.io' }
}
application {
mainClassName = project.hasProperty("stream") ? project.getProperty("stream") : "NULL"
}
run {
// configure tracing properties if enabled
if ("true" == project.tracingEnabled) {
systemProperty "otel.traces.exporter", 'otlp'
systemProperty "otel.exporter.otlp.protocol", 'grpc'
systemProperty "otel.exporter.otlp.endpoint", 'http://localhost:4317'
systemProperty "otel.resource.attributes", "service.name=$mainClassName"
systemProperty "otel.logs.exporter", 'none'
systemProperty "otel.metrics.exporter", 'none'
jvmArgs = ["-javaagent:opentelemetry-javaagent_1.25.0.jar"]
}
}
dependencies {
// https://jitpack.io/#schroedermatt/data-demo
implementation 'com.github.schroedermatt.data-demo:mockdata:0.1.1'
implementation 'org.apache.kafka:kafka-clients:7.3.0-ce'
implementation 'org.apache.kafka:kafka-streams:7.3.0-ce'
// included for the Serdes
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
implementation 'org.springframework.kafka:spring-kafka:3.0.4'
implementation 'net.datafaker:datafaker:1.8.1'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.slf4j:slf4j-api:2.0.5'
implementation 'org.slf4j:slf4j-simple:2.0.5'
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation 'org.apache.kafka:kafka-streams-test-utils:7.3.0-ce'
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
testImplementation 'org.codehaus.groovy:groovy-all:3.0.16'
}
test {
useJUnitPlatform()
}
test {
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}