-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathbuild.gradle
75 lines (62 loc) · 1.87 KB
/
build.gradle
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 {
}
def baseJvmArgs = [
"--add-opens=java.base/java.io=ALL-UNNAMED",
"--add-opens=java.base/java.lang=ALL-UNNAMED",
"--add-opens=java.base/java.lang.invoke=ALL-UNNAMED",
"--add-opens=java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens=java.base/java.nio=ALL-UNNAMED",
"--add-opens=java.base/java.nio.charset=ALL-UNNAMED",
"--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED",
"--add-opens=java.base/sun.nio.ch=ALL-UNNAMED",
"-Djava.net.preferIPv4Stack=true"
]
project.ext.set("baseJvmArgs", baseJvmArgs)
allprojects {
apply plugin: "java"
sourceCompatibility = 11
targetCompatibility = 11
repositories {
jcenter()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots"
}
}
ext {
assertjVersion = "3.12.2"
fulcrumVersion = "0.36.0"
jacksonVersion = "2.9.9"
junitVersion = "4.12"
kafkaVersion = "2.4.0"
log4jVersion = "1.2.17"
slf4jVersion = "1.7.25"
}
dependencies {
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
implementation "org.slf4j:slf4j-log4j12:${slf4jVersion}"
implementation "log4j:log4j:${log4jVersion}"
testImplementation "org.assertj:assertj-core:${assertjVersion}"
testImplementation "junit:junit:${junitVersion}"
}
compileJava {
options.compilerArgs += "-proc:none"
}
compileTestJava {
options.compilerArgs += "-proc:none"
}
tasks.withType(JavaCompile) {
options.fork = true
options.incremental = true
}
test {
jvmArgs += baseJvmArgs
}
}
subprojects {
}
dependencies {
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${jacksonVersion}"
implementation "com.obsidiandynamics.fulcrum:fulcrum-worker:${fulcrumVersion}"
implementation "org.apache.kafka:kafka-clients:${kafkaVersion}"
}