-
Notifications
You must be signed in to change notification settings - Fork 40
/
build.gradle
66 lines (54 loc) · 1.42 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
plugins {
id 'java'
id 'jacoco'
id 'checkstyle'
}
group 'com.ordestiny'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.5.13'
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.7.0'
// https://mvnrepository.com/artifact/org.assertj/assertj-core
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.17.2'
}
jacoco {
toolVersion = "0.8.5"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestCoverageVerification {
violationRules {
rule {
element = 'CLASS'
limit {
counter = 'LINE'
value = 'COVEREDRATIO'
minimum = 0.95
}
excludes = [
'io.reflectoring.coverage.part.PartlyCovered',
'io.reflectoring.coverage.ignored.*',
'io.reflectoring.coverage.part.NotCovered'
]
}
}
}
test {
useJUnitPlatform()
}
checkstyle {
toolVersion '8.36.2'
ignoreFailures = true
//maxWarnings = 0
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}