forked from marylly/ci-cd-java-workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·67 lines (58 loc) · 1.36 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
plugins {
id 'findbugs'
id 'jacoco'
id 'java'
id 'maven-publish'
id 'pmd'
id 'checkstyle'
}
repositories {
mavenLocal()
maven {
url = 'http://repo.maven.apache.org/maven2'
}
}
group = 'com.emailService'
version = '0.0.1-SNAPSHOT'
description = 'emailService'
sourceCompatibility = '1.8'
dependencies {
compile 'org.springframework.boot:spring-boot-starter-activemq:2.1.5.RELEASE'
compile 'org.springframework.boot:spring-boot-starter-web:2.1.5.RELEASE'
testCompile 'org.springframework.boot:spring-boot-starter-test:2.1.5.RELEASE'
}
jacoco {
toolVersion = "0.8.4"
reportsDir = file("./target/site/jacoco")
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
html.destination file("./target/site/jacoco")
}
}
test {
jacoco {
println '[COVERAGE] Executing verifications...'
destinationFile = file("./target/jacoco.exec")
classDumpDir = file("./target/jacoco")
}
}
findbugs {
println '[FINDBUGS] Executing verifications...'
ignoreFailures = false
effort = "max"
reportLevel = "high"
}
pmd {
println '[PMD] Executing verifications...'
toolVersion = '5.5.2'
ignoreFailures = false
}
checkstyle {
println '[CHECKSTYLE] Executing verifications...'
sourceSets = []
showViolations = true
toolVersion = "8.23"
}