Skip to content
Permalink
Browse files
Added shadowJar task. To build uber jar just run ./gradlew shadowJar
  • Loading branch information
jhuynh1 committed Feb 6, 2020
1 parent 05fdba8 commit 76349ee6a715d8685cdfa659a6c89f7a4f2b3dd1
Showing 2 changed files with 11 additions and 1 deletion.
@@ -34,6 +34,7 @@ buildscript {
}
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}

apply plugin: 'wrapper'
@@ -78,4 +79,14 @@ dependencies {
testImplementation 'org.awaitility:awaitility:4.0.2'
}

shadowJar {
dependencies {
// exclude dependencies provided in the kafka connect classpath
exclude dependency("org.apache.kafka:connect-api:.*")
exclude dependency("org.apache.kafka:kafka-clients:.*")
exclude dependency('net.jpountz.lz4:.*:.*')
exclude dependency('org.xerial.snappy:.*:.*')
exclude dependency('org.slf4j:.*:.*')
}
}

@@ -155,7 +155,6 @@ private static Properties getKafkaConfig() throws IOException {
Properties props = new Properties();

props.put("broker.id", "0");
props.put("log4j.configuration", "/Users/jhuynh/Pivotal/kafka/config/connect-log4j.properties");
props.put("zookeeper.connect", "localhost:2181");
props.put("host.name", "localHost");
props.put("port", BROKER_PORT);

0 comments on commit 76349ee

Please sign in to comment.