-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
63 lines (51 loc) · 1.17 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
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'checkstyle'
group = 'uk.ac.ucl.cs'
version = '1.0.0'
description = """203P Exercise 3"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version:'4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version:'1.3'
testCompile group: 'org.jmock', name: 'jmock-junit4', version: '2.8.3'
}
test {
testLogging {
events "PASSED", "FAILED", "SKIPPED"
}
}
checkstyle {
toolVersion = '8.2'
configFile rootProject.file('config/checkstyle/checkstyle.xml')
maxErrors = 0
maxWarnings = 0
sourceSets = [project.sourceSets.main]
}
jacoco {
toolVersion = '0.7.9'
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/reports/coverage")
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.8
}
}
}
}
check.dependsOn jacocoTestCoverageVerification