-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
44 lines (35 loc) · 1.07 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.shadow)
}
group = "name.nkonev"
version = "0.1.0"
repositories {
mavenCentral()
}
dependencies {
implementation(libs.logback.classic)
implementation(libs.flink.statebackend.rocksdb)
implementation(libs.flink.json)
implementation(libs.flink.clients)
implementation(libs.flink.runtime.web)
implementation(libs.flink.table.api.java.bridge)
implementation(libs.flink.table.planner)
implementation(libs.flink.sql.connector.postgres.cdc)
implementation(libs.commons.lang)
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "17"
}
tasks.withType<ShadowJar> {
isZip64 = true // needed because lots of files
mergeServiceFiles() // required for run flink correctly (https://habr.com/ru/companies/ru_mts/articles/775970/)
manifest {
attributes["Main-Class"] = "name.nkonev.flink.pipe.Main"
}
}