-
Notifications
You must be signed in to change notification settings - Fork 180
/
build.gradle
204 lines (156 loc) · 6.67 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'org.junit.platform.gradle.plugin'
group = 'bbejeck'
version = '1.0-SNAPSHOT'
description = "Source Code for the Kafka Streams in Action Book"
sourceCompatibility = 1.8
targetCompatibility = 1.8
task runZmartAdvancedChapter_3(type: JavaExec){
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_3.ZMartKafkaStreamsAdvancedReqsApp"
}
task runYellingApp(type: JavaExec){
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_3.KafkaStreamsYellingApp"
}
task runZmartFirstAppChapter_3(type: JavaExec){
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_3.ZMartKafkaStreamsApp"
}
task runJoinsExampleAppChapter_4(type: JavaExec){
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_4.KafkaStreamsJoinsApp"
}
task runAddStateAppChapter_4(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_4.ZMartKafkaStreamsAddStateApp"
}
task runAggregationsChapter_5(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_5.AggregationsAndReducingExample"
}
task runCountingWindowingChapter_5(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_5.CountingWindowingAndKtableJoinExample"
}
task runGlobalKtableChapter_5(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_5.GlobalKTableExample"
}
task runKStreamKTableChapter_5(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_5.KStreamVsKTableExample"
}
task runPopsHopsChapter_6(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_6.PopsHopsApplication"
}
task runStockPerformance_Chapter_6(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_6.StockPerformanceApplication"
}
task runStockPerformanceStreamsProcess_Chapter_6(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_6.StockPerformanceStreamsAndProcessorApplication"
}
task runCoGrouping_Chapter_6(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_6.CoGroupingApplication"
}
task runCoGroupingStateRestoreListener_Chapter_7(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_7.CoGroupingListeningExampleApplication"
}
task runStockPerformanceConsumerInterceptor_Chapter_7(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_7.StockPerformanceStreamsAndProcessorMetricsApplication"
}
task runZmartJmxAndProducerInterecptor_Chapter_7(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_7.ZMartKafkaStreamsAdvancedReqsMetricsApp"
}
task runDatabaseInserts(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.util.db.DBServer"
}
task runStreamsConnectIntegration_Chapter_9(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_9.StockCountsStreamsConnectIntegrationApplication"
}
task runProducerInteractiveQueries(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_9.StockPerformanceInteractiveQueryDataProducer"
}
task runInteractiveQueryApplicationOne(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_9.StockPerformanceInteractiveQueryApplication"
args = ['localhost','4567']
}
task runInteractiveQueryApplicationTwo(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
main = "bbejeck.chapter_9.StockPerformanceInteractiveQueryApplication"
args = ['localhost','4568']
}
jar {
archiveName='bbejeck-kafka-streams-in-action-1.0-SNAPSHOT.jar'
}
repositories {
mavenCentral()
}
configurations {
compile.exclude group:'ch.qos.logback'
}
compileJava {
options.warnings = true
options.deprecation = true
}
dependencies {
compile group: 'com.google.code.gson', name: 'gson', version:'2.6.1'
compile group: 'com.google.guava', name: 'guava', version:'21.0'
compile group: 'org.apache.commons', name: 'commons-lang3', version:'3.1'
compile group: 'com.101tec', name:'zkclient', version:'0.7'
compile group: 'com.yammer.metrics', name:'metrics-core', version:'2.2.0'
compile group: 'com.twitter', name:'hbc-core', version:'2.2.0'
compile group: 'de.julielab', name: 'aliasi-lingpipe', version:'4.1.0'
compile group: 'org.apache.commons', name:'commons-lang3', version:'3.4'
compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'io.dropwizard', name:'dropwizard-core', version:'1.0.5'
compile group: 'com.sparkjava', name: 'spark-core', version: '2.6.0'
compile group: 'com.esotericsoftware', name: 'kryo', version: '4.0.0'
compile group: 'com.h2database', name:'h2', version: '1.4.196'
compile group: 'javax.ws.rs', name: 'javax.ws.rs-api', version: '2.1'
compile group: 'org.apache.kafka', name: 'connect-api', version: '1.0.0'
compile group: 'org.apache.kafka', name:'kafka-streams', version: '1.0.0'
compile group: 'org.apache.kafka', name:'kafka-clients', version: '1.0.0'
compile group: 'org.rocksdb', name: 'rocksdbjni', version: '5.3.6'
compile (group: 'com.github.javafaker', name: 'javafaker', version: '0.12') {
exclude group:'ch.qos.logback'
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-api', version:'5.0.0'
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version:'5.0.0'
testCompile group:'org.mockito', name:'mockito-core', version:'2.10.0'
testCompile group:'org.hamcrest', name:'hamcrest-junit', version:'2.0.0.0'
testCompile group:'org.apache.kafka', name:'kafka-streams', version:'1.0.0', classifier: 'test'
testCompile group:'org.apache.kafka', name:'kafka-clients', version:'1.0.0', classifier: 'test'
testCompile (group:'org.apache.kafka', name:'kafka_2.12', version:'1.0.0') {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
testCompile (group:'org.apache.kafka', name:'kafka_2.12', version:'1.0.0', classifier: 'test') {
exclude group: 'org.slf4j', module: 'slf4j-log4j12'
}
testCompile group: 'org.scala-lang', name: 'scala-library-all', version: '2.12.4'
}