-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
142 lines (112 loc) · 4.25 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
plugins {
id 'java'
id 'jacoco'
id 'idea'
id 'net.researchgate.release' version '2.6.0'
id 'org.springframework.boot' version '2.1.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.7.RELEASE'
}
group = 'io.github.otaviof'
sourceCompatibility = '11'
ext['junit-jupiter.version'] = junitVersion
repositories {
mavenCentral()
mavenLocal()
mavenCentral()
jcenter()
maven { url("http://repo1.maven.org/maven2/") }
maven { url("http://packages.confluent.io/maven/") }
}
dependencies {
compileOnly("org.projectlombok:lombok:${lombokVersion}")
testCompileOnly("org.projectlombok:lombok:${lombokVersion}")
annotationProcessor("org.projectlombok:lombok:${lombokVersion}")
testAnnotationProcessor("org.projectlombok:lombok:${lombokVersion}")
compile(
"org.apache.avro:avro:${avroVersion}",
"io.confluent:kafka-avro-serializer:${confluentVersion}",
"io.confluent:kafka-streams-avro-serde:${confluentVersion}")
compile(
"org.apache.kafka:kafka-streams:${kafkaStreamsVersion}",
"org.apache.kafka:kafka-clients:${kafkaStreamsVersion}")
compile("com.github.ben-manes.caffeine:caffeine:${caffeineVersion}")
compile("org.apache.commons:commons-lang3:${apacheCommonsVersion}")
compile("org.awaitility:awaitility:${awaitilityVersion}")
compile(
"io.opentracing.contrib:opentracing-spring-cloud-starter:${otSpringStarterVersion}",
"io.opentracing.contrib:opentracing-spring-tracer-configuration-starter:${otSpringTracerConfigVersion}")
compile(
"io.opentracing.contrib:opentracing-kafka-client:${otKafkaVersion}",
"io.opentracing.contrib:opentracing-kafka-streams:${otKafkaVersion}")
compile(
"io.opentracing.contrib:opentracing-spring-jaeger-starter:${otSpringJaegerVersion}",
"io.jaegertracing:jaeger-core:${jaegerCoreVersion}")
compile(
"io.micrometer:micrometer-registry-prometheus:${micrometerVersion}",
"io.micrometer:micrometer-core:${micrometerVersion}")
compile(
"org.springframework.boot:spring-boot-starter-web:${springVersion}",
"org.springframework.boot:spring-boot-starter-logging:${springVersion}",
"org.springframework.boot:spring-boot-configuration-processor:${springVersion}",
"org.springframework.boot:spring-boot-starter-actuator:${springVersion}",
"org.springframework.boot:spring-boot-starter-validation:${springVersion}")
implementation('org.springframework.boot:spring-boot-starter')
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit', module: 'junit'
}
compile("org.junit.jupiter:junit-jupiter-api")
testCompile("org.junit.jupiter:junit-jupiter-params")
testCompile("org.junit.platform:junit-platform-runner")
testRuntime("org.junit.jupiter:junit-jupiter-engine")
}
bootJar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
version = null
mainClassName = "io.github.otaviof.ravine.Ravine"
}
assemble.dependsOn(bootJar)
bootRun {
systemProperty('spring.config.location', 'file:./src/main/resources/,file:./src/test/resources/')
}
release {
tagTemplate = '${version}'
versionPropertyFile = 'gradle.properties'
}
test {
testLogging {
events 'failed'
exceptionFormat 'full'
}
beforeTest { descriptor -> logger.lifecycle("## Testing: $descriptor.className") }
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
events 'started', 'passed'
}
}
task verify(type: Test, dependsOn: testClasses) {
filter {
excludeTestsMatching("io.github.otaviof.ravine.integration.*")
}
}
task integration(type: Test, dependsOn: testClasses) {
filter {
includeTestsMatching("io.github.otaviof.ravine.integration.*")
}
}
verify.finalizedBy(jacocoTestReport)
integration.finalizedBy(jacocoTestReport)
task coverage(type: JacocoReport, dependsOn: [verify, integration]) {
sourceSets sourceSets.main
executionData verify
executionData integration
reports {
xml.enabled(true)
xml.destination(file("${buildDir}/reports/jacoco.xml"))
html.enabled(false)
}
}