-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (54 loc) · 1.45 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "com.commercehub.gradle.plugin:gradle-avro-plugin:0.22.0"
classpath "com.github.jengelman.gradle.plugins:shadow:4.0.2"
}
}
plugins {
id "java"
id "com.google.cloud.tools.jib" version "3.1.1"
id "idea"
id "eclipse"
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
version = "0.0.1"
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven"
}
}
apply plugin: "com.commercehub.gradle.plugin.avro"
apply plugin: "com.github.johnrengelman.shadow"
dependencies {
implementation "org.apache.avro:avro:1.10.2"
implementation "org.slf4j:slf4j-simple:1.7.30"
implementation "org.apache.kafka:kafka-streams:2.7.0"
implementation "io.confluent:kafka-streams-avro-serde:6.1.1"
testImplementation "org.apache.kafka:kafka-streams-test-utils:2.7.0"
testImplementation "junit:junit:4.13.2"
testImplementation 'org.hamcrest:hamcrest:2.2'
}
test {
testLogging {
outputs.upToDateWhen { false }
showStandardStreams = true
exceptionFormat = "full"
}
}
jar {
manifest {
attributes(
"Class-Path": configurations.compileClasspath.collect { it.getName() }.join(" "),
"Main-Class": "io.confluent.developer.KafkaProducerApplication"
)
}
}
shadowJar {
archiveBaseName = "kafka-producer-application-standalone"
archiveClassifier = ''
}