forked from confluentinc/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
47 lines (38 loc) · 1.17 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "io.confluent.confluent"
plugins {
java
kotlin("jvm") version "1.3.11"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
dependencies {
compile(kotlin("stdlib"))
compile(kotlin("reflect"))
compile("org.apache.kafka:kafka-clients:2.1.0")
compile("org.apache.kafka:kafka-streams:2.1.0")
compile("org.apache.kafka:connect-runtime:2.1.0")
compile("io.confluent:kafka-json-serializer:5.0.1")
compile("org.slf4j:slf4j-api:1.7.6")
compile("org.slf4j:slf4j-log4j12:1.7.6")
compile("com.fasterxml.jackson.core:jackson-databind:[2.8.11.1,)")
//compile ("com.fasterxml.jackson.module:jackson-module-kotlin:[2.8.11.1,)")
compile("com.google.code.gson:gson:2.2.4")
}
repositories {
jcenter()
maven(url = "http://packages.confluent.io/maven/")
}
val configPath: String by project
val topic: String by project
val mainClass: String by project
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
task("runApp", JavaExec::class) {
classpath = sourceSets["main"].runtimeClasspath
main = mainClass
args = listOf(configPath, topic)
}