-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
62 lines (53 loc) · 1.15 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
plugins {
id 'com.github.sherter.google-java-format' version '0.7.1'
}
repositories {
jcenter()
}
apply plugin: 'jacoco'
apply plugin: 'java'
apply plugin: 'pmd'
sourceCompatibility = 8
targetCompatibility = 8
pmd {
sourceSets = [sourceSets.main]
ignoreFailures = true
ruleSets = [
"java-basic",
"java-braces",
"java-clone",
"java-design",
"java-finalizers",
"java-imports",
"java-junit",
"java-optimizations",
"java-strictexception",
"java-strings",
"java-sunsecure",
"java-typeresolution",
"java-unusedcode"
]
}
dependencies {
testCompile('org.junit.jupiter:junit-jupiter-api:5.3.+')
testCompile('org.junit.jupiter:junit-jupiter-params:5.3.+')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.3.+')
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacoco {
toolVersion = "0.8.2"
}
jacocoTestReport {
reports {
html.enabled true
html.destination "${buildDir}/reports/jacoco/html"
}
}
jar {
manifest {
attributes 'Main-Class': 'lab.controller.CarController'
}
}