-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (62 loc) · 1.87 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'org.apache.kafka:kafka-clients:3.4.0'
implementation 'org.apache.kafka:kafka-streams:3.4.0'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.2'
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.14.2'
implementation 'ch.qos.logback:logback-classic:1.4.6'
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'org.apache.kafka:kafka-streams-test-utils:3.4.0'
}
group = 'com.hugomalves'
version = '1.0-SNAPSHOT'
description = 'demo-stream-reconciliation'
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.register('runKStream', JavaExec) {
group = 'demo'
description = 'Runs the KStream application.'
dependsOn 'classes'
main = 'com.hugomalves.shipping.ShippingKstreamApplication'
classpath = sourceSets.main.runtimeClasspath
ignoreExitValue true
}
tasks.register('runOrderProducer', JavaExec) {
group = 'demo'
description = 'Runs the Order producer.'
dependsOn 'classes'
main = 'com.hugomalves.order.OrderProducer'
classpath = sourceSets.main.runtimeClasspath
}
tasks.register('runProductManufacturedProducer', JavaExec) {
group = 'demo'
description = 'Runs the product manufactured producer.'
dependsOn 'classes'
main = 'com.hugomalves.manufacturer.ProductManufacturedProducer'
classpath = sourceSets.main.runtimeClasspath
}