This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 292
/
build.gradle
93 lines (80 loc) · 2.07 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
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 {
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.6.1'
dropwizardVersion = '3.1.3'
curatorVersion = '5.1.0'
zookeeperVersion = '3.6.4'
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") }
}