-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (39 loc) · 864 Bytes
/
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
plugins {
id 'bevans.java-conventions'
id 'java-library'
}
ext {
connectVersion = '3.7.0'
jsonVersion = '20240303'
}
dependencies {
api("org.apache.kafka:connect-api:${connectVersion}")
implementation("org.apache.kafka:connect-transforms:${connectVersion}")
implementation("org.json:json:${jsonVersion}")
}
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test
reports {
xml.required = true
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
counter = 'LINE'
minimum = project.jacocoMinLine;
}
limit {
counter = 'BRANCH'
minimum = project.jacocoMinBranch;
}
}
}
}
tasks.named('check') {
dependsOn jacocoTestCoverageVerification
}