-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
132 lines (112 loc) · 3.51 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
import org.apache.tools.ant.filters.*
buildscript {
configurations.maybeCreate('pitest')
dependencies {
pitest 'org.pitest:pitest-junit5-plugin:0.12'
}
}
plugins {
id 'org.springframework.boot' version '2.2.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'checkstyle'
id 'pmd'
id 'name.remal.sonarlint' version '1.0.178'
id 'org.sonarqube' version '2.8'
id 'jacoco'
id 'info.solidsoft.pitest' version '1.4.7'
id 'com.github.ben-manes.versions' version '0.28.0'
}
group = 'com.nelkinda.training'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '13'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
checkstyle 'com.puppycrawl.tools:checkstyle:8.30'
annotationProcessor 'org.projectlombok:lombok'
compileOnly 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
testAnnotationProcessor 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
testImplementation 'io.cucumber:cucumber-java:5.5.0'
testImplementation 'io.cucumber:cucumber-junit:5.5.0'
testImplementation 'io.cucumber:cucumber-junit-platform-engine:5.5.0'
testImplementation 'junit:junit:4.13'
testImplementation 'org.junit.jupiter:junit-jupiter:5.6.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.6.0'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.6.0'
testImplementation 'org.junit.platform:junit-platform-commons:1.6.0'
testImplementation 'org.junit.platform:junit-platform-engine:1.6.0'
testImplementation 'org.junit.vintage:junit-vintage-engine:5.6.0'
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
exclude group: 'org.junit.jupiter', module: 'junit-jupiter'
exclude group: 'org.junit.jupiter', module: 'junit-jupiter-api'
}
}
checkstyleMain {
configFile = file("config/checkstyle/checkstyleMain.xml")
maxWarnings = 0
}
checkstyleTest {
configFile = file("config/checkstyle/checkstyleTest.xml")
maxWarnings = 0
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 1.0
}
}
}
}
check.dependsOn jacocoTestCoverageVerification
pitest {
targetClasses = ['com.nelkinda.training.microservice.*']
pitestVersion = '1.5.0'
timestampedReports = false
testPlugin = 'junit5'
outputFormats = ['XML', 'HTML']
mutators = ['ALL']
mutationThreshold = 100
coverageThreshold = 100
}
pmd {
ruleSets = []
consoleOutput = true
dependencies {
pmd 'net.sourceforge.pmd:pmd:6.22.0'
pmd 'net.sourceforge.pmd:pmd-core:6.22.0'
pmd 'net.sourceforge.pmd:pmd-java:6.22.0'
}
}
pmdMain {
ruleSetFiles = files("config/pmd/pmdMain.xml")
}
pmdTest {
ruleSetFiles = files("config/pmd/pmdTest.xml")
}
processResources {
filter ReplaceTokens, tokens: [
"application.version": project.property("version")
]
}
test {
useJUnitPlatform()
}
wrapper {
gradleVersion "6.2.2"
jarFile ".gradle/wrapper/gradle-wrapper.jar"
}