forked from zalando/nakadi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
95 lines (82 loc) · 2.13 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
subprojects {
buildscript {
ext {
springBootVersion = '2.5.12'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
apply plugin: 'java'
apply plugin: 'checkstyle'
apply plugin: 'jacoco'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
checkstyle {
// Ignored checkstyle
ignoreFailures = true
configFile = new File(rootDir, "checkstyle.xml")
toolVersion = "8.34"
}
jacoco {
toolVersion = "0.8.2"
}
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
test {
testLogging {
events "passed", "skipped", "failed"
}
testLogging.exceptionFormat = 'full'
maxParallelForks = Runtime.runtime.availableProcessors()
}
task testWithReport() {
dependsOn test
finalizedBy jacocoTestReport
}
dependencies {
ext {
kafkaClientVersion = '3.3.2'
dropwizardVersion = '3.1.3'
curatorVersion = '5.1.0'
zookeeperVersion = '3.6.1'
jacksonVersion = '2.9.8'
opentracingVersion = '0.33.0'
}
}
}
task startNakadi(type: Exec) {
commandLine "bash", "-c", "./nakadi.sh start-nakadi"
}
task fullAcceptanceTest(type: Exec) {
commandLine "bash", "-c", "./nakadi.sh acceptance-tests"
}
task stopNakadi(type: Exec) {
commandLine "bash", "-c", "./nakadi.sh stop-nakadi"
}
task startStorages(type: Exec) {
commandLine "bash", "-c", "./nakadi.sh start-storages"
}
task checkstyle {
subprojects.each { dependsOn(":${it.name}:checkstyleMain") }
subprojects.each { dependsOn(":${it.name}:checkstyleTest") }
dependsOn(":acceptance-test:checkstyleMain")
dependsOn(":acceptance-test:checkstyleAcceptanceTest")
}
task test {
subprojects.each { dependsOn(":${it.name}:testWithReport") }
}