-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
75 lines (59 loc) · 1.53 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
plugins {
java
id("com.diffplug.spotless") version "6.2.0"
}
val beamVersion: String = "2.60.0"
repositories {
mavenCentral()
}
allprojects {
group = "com.icloud"
version = "1.0.0-SNAPSHOT"
plugins.apply {
apply("java")
apply("com.diffplug.spotless")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
spotless {
java {
importOrder()
removeUnusedImports()
googleJavaFormat()
}
}
repositories {
mavenCentral()
}
dependencies {
// beam bom
implementation(platform("org.apache.beam:beam-sdks-java-google-cloud-platform-bom:$beamVersion"))
beamImplementation(
"beam-sdks-java-core",
)
beamRuntimeOnly(
"beam-runners-direct-java",
"beam-runners-flink-1.18"
)
// logger
implementation("org.slf4j:slf4j-jdk14:1.7.32")
implementation("ch.qos.logback:logback-classic:1.4.12")
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}
}
fun DependencyHandlerScope.beamImplementation(vararg args: String) {
for (arg in args) {
implementation("org.apache.beam:$arg")
}
}
fun DependencyHandlerScope.beamRuntimeOnly(vararg args: String) {
for (arg in args) {
runtimeOnly("org.apache.beam:$arg")
}
}