-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (63 loc) · 1.69 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
plugins {
id 'java'
id 'application'
id 'checkstyle'
id 'edu.illinois.cs.cs125.gradlegrader' version '2020.1.3'
}
repositories {
mavenCentral()
}
dependencies {
testImplementation('org.junit.jupiter:junit-jupiter:5.6.2')
testImplementation('com.github.cs125-illinois:gradlegrader:2020.1.3')
testRuntimeOnly('com.github.cs125-illinois:gradlegrader:2020.1.3')
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
application {
mainClassName = 'uk.ac.liverpool.comp122.week1.HelloJava'
}
checkstyle {
// assign the latest checkstyle version explicitly to ensure compatibility
// with recent google_checks.xml
toolVersion = '8.32'
showViolations = false
}
tasks.withType(Checkstyle) {
reports {
xml.enabled true
html.enabled false
}
}
gradlegrader {
assignment 'COMP122-2021 A1'
checkstyle {
points = 10
configFile = file('config/checkstyle/checkstyle.xml')
version = '8.32' // use the newest checkstyle version
}
//identification {
// txtFile = file('email.txt')
// validate = { email -> email.endsWith('@liverpool.ac.uk') }
//}
reporting {
jsonFile = file('grade.json')
post {
endpoint = "https://example.com/progress"
}
printPretty {
title = "COMP122 A1"
notes = "Note that the maximum local grade is 90/100. 10 points will be awarded during " +
"official grading if you have submitted code that earns at least 40 points."
}
}
//subprojects project(':app'), project(':lib')
//vcs {
// git = true
// requireCommit = true
//}
}