-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
77 lines (59 loc) · 1.7 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.commercehub.gradle.plugin:gradle-avro-plugin:0.15.1"
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.12"
}
}
plugins {
id "java"
id "application"
id "idea"
id "com.google.cloud.tools.jib" version "2.4.0"
id "com.github.johnrengelman.shadow" version "5.1.0"
id "com.google.protobuf" version "0.8.12"
}
version = "0.0.1"
repositories {
jcenter()
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.8.2"
implementation "com.google.protobuf:protobuf-java:3.11.4"
implementation "org.slf4j:slf4j-simple:1.7.26"
implementation "org.apache.kafka:kafka-streams:2.5.0"
implementation "io.confluent:kafka-streams-avro-serde:5.5.0"
implementation "io.confluent:kafka-streams-protobuf-serde:5.5.0"
}
jar {
manifest {
attributes(
"Class-Path": configurations.compileClasspath.collect { it.getName() }.join(" "),
"Main-Class": "io.agh.serialization.KafkaStreamsAvroToProtobuf"
)
}
}
shadowJar {
archiveBaseName = "kstreams-avro-to-protobuf"
archiveClassifier = ''
}
// Define the main class for the application
mainClassName = 'io.agh.serialization.KafkaStreamsAvroToProtobuf'
protobuf {
generatedFilesBaseDir = "$buildDir/generated-main-proto-java/"
protoc {
artifact = "com.google.protobuf:protoc:3.12.3"
}
}
idea {
module {
sourceDirs += file("${buildDir}/generated-main-proto-java/")
}
}