-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
47 lines (41 loc) · 1.58 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
plugins {
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
//task startZookeeper(type: Exec) {
// workingDir "scripts/"
// commandLine 'bash', './start-zookeeper.bash'
//}
//
//task startKafka(type: Exec) {
// workingDir "scripts/"
// commandLine 'bash', './start-kafka.bash'
//}
task runProducer(type: JavaExec) {
group = "Execution"
description = "Run the main Fetch and Producer class"
classpath = sourceSets.main.runtimeClasspath
main = 'com.examples.NewsLetter.NewsLetterProduce'
}
task runConsumer(type: JavaExec) {
group = "Execution"
description = "Run the Consumer class"
classpath = sourceSets.main.runtimeClasspath
main = 'com.examples.NewsLetter.NewsLetterConsume'
}
dependencies {
compile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.apache.kafka', name: 'kafka-clients', version: '2.0.0'
compile group: 'org.apache.kafka', name: 'kafka-streams', version: '2.0.0'
compile group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.11.0'
compile group: 'org.elasticsearch', name: 'elasticsearch', version: '7.6.2'
compile group: 'org.elasticsearch.client', name: 'elasticsearch-rest-high-level-client', version: '7.6.2'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.6'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.10'
compile group: 'org.json', name: 'json', version:'20090211'
}