Repository navigation
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (56 loc) · 1.76 KB
/
Copy pathbuild.gradle
File metadata and controls
63 lines (56 loc) · 1.76 KB
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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.4.32'
}
ext {
flinkVersion = '1.12.2'
scalaBinaryVersion = '2.11'
}
group 'chiw.spc'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2")
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
// hazelcast jet
implementation('com.hazelcast.jet:hazelcast-jet:4.5')
implementation('com.hazelcast.jet:hazelcast-jet-core:4.5:tests')
implementation('com.hazelcast.jet:hazelcast-jet-protobuf:4.5')
// flink
compileOnly("org.apache.flink:flink-java:${flinkVersion}")
compileOnly("org.apache.flink:flink-streaming-java_${scalaBinaryVersion}:${flinkVersion}")
compileOnly("org.apache.flink:flink-clients_${scalaBinaryVersion}:${flinkVersion}")
// protobuf
implementation("com.twitter:chill-protobuf:0.7.6") {
exclude group: 'com.esotericsoftware.kryo', module: 'kryo'
}
implementation('com.google.protobuf:protobuf-java:3.19.1')
// log
implementation("org.slf4j:slf4j-api:1.7.25")
implementation("org.slf4j:slf4j-log4j12:1.7.25")
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
jar {
manifest {
attributes 'Built-By': System.getProperty('user.name'),
'Build-Jdk': System.getProperty('java.version')
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}