-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (65 loc) · 1.72 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
plugins {
id 'java'
id 'checkstyle'
id 'jacoco'
id 'application'
}
group 'ca.ubc.ece.cpen221'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.14
ext {
junitJupiterVersion = "5.5.2"
junit4Version = "4.1.2"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.1'
implementation 'org.fastily:jwiki:1.8.0'
testImplementation group: 'com.google.code.gson', name: 'gson', version: '2.8.1'
implementation 'org.jetbrains:annotations:16.0.2'
implementation (
"junit:junit:${junit4Version}",
"org.junit.jupiter:junit-jupiter-migrationsupport:${junitJupiterVersion}",
"org.junit.jupiter:junit-jupiter-params:${junitJupiterVersion}"
)
testImplementation (
"junit:junit:${junit4Version}",
"org.junit.jupiter:junit-jupiter-migrationsupport:${junitJupiterVersion}",
"org.junit.jupiter:junit-jupiter-params:${junitJupiterVersion}"
)
testRuntimeOnly (
// Uncomment to use junit4
"org.junit.vintage:junit-vintage-engine:${junitJupiterVersion}",
"org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}"
)
}
test {
useJUnitPlatform()
}
tasks.withType(Checkstyle) {
source 'src/main'
include '**/FSFTBuffer.java'
classpath = files()
reports {
xml.enabled true
html.enabled true
}
}
jacoco {
toolVersion = "0.8.5"
reportsDir = file("$buildDir/reports/jacoco")
}
tasks.withType(Test) {
jacoco.includeNoLocationClasses = true
jacoco.excludes = ['jdk.internal.*']
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled true
html.enabled false
}
}