forked from zalando/nakadi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
100 lines (86 loc) · 2.39 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
96
97
98
99
100
plugins {
id 'com.autonomousapps.dependency-analysis' version "1.17.0"
}
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.required = true
html.required = true
}
}
test {
testLogging {
events "passed", "skipped", "failed"
}
testLogging.exceptionFormat = 'full'
maxParallelForks = Runtime.runtime.availableProcessors()
}
tasks.register("testWithReport") {
dependsOn tasks.named("test")
finalizedBy tasks.named("jacocoTestReport")
}
dependencies {
ext {
kafkaClientVersion = '3.1.1'
dropwizardVersion = '3.1.3'
curatorVersion = '5.1.0'
zookeeperVersion = '3.6.1'
jacksonVersion = '2.9.8'
opentracingVersion = '0.33.0'
springframeworkVersion = '5.3.18'
nakadiPluginApiVersion = '3.2.1'
fasterXmlJacksonVersion = '2.12.6'
fasterXmlJacksonDatabindVersion = '2.12.6.1'
postgresqlVersion = '42.3.2'
}
}
}
tasks.register("startNakadi", Exec.class) {
commandLine "bash", "-c", "./nakadi.sh start-nakadi"
}
tasks.register("fullAcceptanceTest", Exec.class) {
commandLine "bash", "-c", "./nakadi.sh acceptance-tests"
}
tasks.register("stopNakadi", Exec.class) {
commandLine "bash", "-c", "./nakadi.sh stop-nakadi"
}
tasks.register("startStorages", Exec.class) {
commandLine "bash", "-c", "./nakadi.sh start-storages"
}
tasks.register("checkstyle") {
subprojects.each { dependsOn(":${it.name}:checkstyleMain") }
subprojects.each { dependsOn(":${it.name}:checkstyleTest") }
}
tasks.register("test") {
subprojects.each { dependsOn(":${it.name}:testWithReport") }
}