Created
April 21, 2022 10:14
-
-
Save timpamungkas/f96a19f3cafb45dd8577ae59f76672a2 to your computer and use it in GitHub Desktop.
Gradle file for kafka UDF (User Defined Function) - Spring Boot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'java' | |
id 'com.github.johnrengelman.shadow' version "7.1.2" | |
} | |
group = 'com.course.kafka' | |
version = '4.0.0' | |
sourceCompatibility = '11' | |
repositories { | |
mavenCentral() | |
maven { | |
url "https://packages.confluent.io/maven" | |
} | |
} | |
ext { | |
set('ksqldbUdfVersion', "7.1.0") | |
set('kafkaVersion', "3.1.0") | |
} | |
dependencies { | |
implementation "io.confluent.ksql:ksqldb-udf:${ksqldbUdfVersion}" | |
implementation "org.apache.kafka:kafka_2.13:${kafkaVersion}" | |
implementation "org.apache.kafka:connect-api:${kafkaVersion}" | |
} | |
compileJava { | |
options.compilerArgs << "-parameters" | |
} | |
shadowJar { | |
archiveBaseName.set('ksqldb-udf') | |
archiveClassifier.set('') | |
archiveVersion.set('4.0.0') | |
destinationDirectory.set(file('build/udf-jar')) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment