-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
88 lines (83 loc) · 2.45 KB
/
build.gradle.kts
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
plugins {
java
application
alias(libs.plugins.style)
alias(libs.plugins.jagr.gradle)
}
version = file("version").readLines().first()
jagr {
assignmentId.set("h02")
submissions {
val main by creating {
studentId.set("ab12cdef")
firstName.set("sol_first")
lastName.set("sol_last")
}
}
graders {
val graderPublic by creating {
graderName.set("H02-Public")
rubricProviderName.set("h02.H02_RubricProvider")
configureDependencies {
implementation(libs.algoutils.tutor)
}
}
val graderPrivate by creating {
graderName.set("H02-Private")
rubricProviderName.set("h02.H02_RubricProvider")
config.set(
org.sourcegrade.jagr.launcher.env.Config(
executor = org.sourcegrade.jagr.launcher.env.Executor(
jvmArgs = listOf(
"-Djava.awt.headless=true",
"-Dtestfx.robot=glass",
"-Dtestfx.headless=true",
"-Dprism.order=sw",
"-Dprism.lcdtext=false",
"-Dprism.subpixeltext=false",
"-Dglass.win.uiScale=100%",
"-Dprism.text=t2k",
),
),
transformers = org.sourcegrade.jagr.launcher.env.Transformers(
timeout = org.sourcegrade.jagr.launcher.env.Transformers.TimeoutTransformer(enabled = false),
),
),
)
configureDependencies {
implementation(libs.algoutils.tutor)
}
}
}
}
dependencies {
implementation(libs.annotations)
implementation(libs.algoutils.student)
implementation(libs.fopbot)
implementation(libs.mockito.core)
testImplementation(libs.junit.core)
}
application {
mainClass.set("h02.Main")
}
tasks {
val runDir = File("build/run")
withType<JavaExec> {
doFirst {
runDir.mkdirs()
}
workingDir = runDir
}
test {
doFirst {
runDir.mkdirs()
}
workingDir = runDir
useJUnitPlatform()
}
withType<JavaCompile> {
options.encoding = "UTF-8"
sourceCompatibility = "17"
targetCompatibility = "17"
}
}