-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (55 loc) · 1.65 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id "java"
id "com.google.protobuf" version "0.9.4"
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
// Use Java 11 since CP Docker images package Java 11 as of CP 7.3.x
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
compileJava.options.compilerArgs << "-parameters"
version = "0.0.1"
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven"
}
}
dependencies {
implementation 'io.confluent.ksql:ksqldb-udf:7.4.0'
implementation 'org.apache.kafka:kafka_2.13:3.5.1'
implementation 'org.apache.kafka:connect-api:3.5.1'
implementation 'com.google.protobuf:protobuf-java:3.24.4'
implementation 'io.github.zabuzard.closy:closy:1.2.1'
testImplementation(platform('org.junit:junit-bom:5.10.0'))
testImplementation('org.junit.jupiter:junit-jupiter')
}
task copyJar(type: Copy) {
from jar
into "extensions/"
}
build.dependsOn copyJar
test {
useJUnitPlatform()
testLogging {
outputs.upToDateWhen { false }
showStandardStreams = true
exceptionFormat = "full"
}
}
shadowJar {
archiveBaseName = "acdp-ksql-udfs"
archiveClassifier = ""
destinationDirectory = file("extensions")
dependencies {
include(dependency("org.apache.kafka_2.13:3.5.1"))
include(dependency("org.apache.kafka:connect-api:3.5.1"))
include(dependency("com.google.protobuf:protobuf-java:3.24.4"))
include(dependency("io.confluent.ksql:ksqldb-udf:7.4.0"))
include(dependency("io.github.zabuzard.closy:closy:1.2.1"))
}
}