-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
43 lines (36 loc) · 1.08 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
plugins {
id 'java'
id 'maven'
id 'groovy'
}
repositories {
mavenLocal()
maven {
url = 'https://packages.confluent.io/maven/'
}
maven {
url = 'https://repo.maven.apache.org/maven2'
}
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.5.5'
compile 'org.apache.kafka:kafka-clients:2.1.0'
compile 'org.apache.kafka:kafka-streams:2.1.0'
compile 'io.confluent:kafka-json-serializer:5.0.1'
compile 'org.slf4j:slf4j-api:1.7.6'
compile 'org.slf4j:slf4j-log4j12:1.7.6'
}
group = 'io.confluent.confluent'
version = '5.0.1'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task runApp(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = project.hasProperty('mainClass') ? project.getProperty('mainClass') : 'package.MyDefaultMain'
def configPath = project.hasProperty('configPath') ? project.getProperty('configPath') :
"${System.getProperty('user.home')}/.confluent/config"
def topic = project.hasProperty('topic') ? project.getProperty('topic') : 'topic1'
args = [configPath, topic]
}