-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
39 lines (34 loc) · 1.06 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
plugins {
id 'java'
}
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven"
}
}
dependencies {
implementation group: 'info.picocli', name:'picocli', version:'4.7.5'
implementation group: 'org.slf4j', name: 'slf4j-reload4j', 'version': '2.0.10'
implementation group: 'org.apache.kafka', name:'kafka-clients', version:'7.5.3-ccs'
implementation group: 'io.confluent', name: 'kafka-avro-serializer', version:'7.5.3'
implementation group: 'io.confluent', name: 'kafka-json-serializer', version:'7.5.3'
implementation group: 'io.confluent', name: 'kafka-json-schema-serializer', version:'7.5.3'
}
tasks.register('uberJar', Jar) {
manifest {
attributes 'Main-Class': "com.lightstreamer.kafka_connector.examples.quick_start.producer.Producer"
}
archiveAppendix = 'all'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from sourceSets.main.output
from {
sourceSets.main.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
}
task distribuite(type: Copy) {
from uberJar
into "$rootDir/$deployDirName"
}