-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
54 lines (49 loc) · 1.16 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
plugins {
java
application
alias(libs.plugins.style)
alias(libs.plugins.jagr.gradle)
}
version = file("version").readLines().first()
jagr {
assignmentId.set("h07")
submissions {
val main by creating {
// ACHTUNG!
// Setzen Sie im folgenden Bereich Ihre TU-ID (NICHT Ihre Matrikelnummer!), Ihren Nachnamen und Ihren Vornamen
// in Anführungszeichen (z.B. "ab12cdef" für Ihre TU-ID) ein!
// studentId.set("")
// firstName.set("")
// lastName.set("")
}
}
}
dependencies {
implementation(libs.annotations)
implementation(libs.algoutils.student)
testImplementation(libs.junit.core)
}
application {
mainClass.set("h07.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"
}
}