-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
57 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
55
56
57
import org.sourcegrade.submitter.submit
plugins {
java
application
id("com.github.johnrengelman.shadow") version "7.1.0"
id("org.sourcegrade.submitter") version "0.4.0"
}
submit {
assignmentId = "h01" // do not change assignmentId
studentId = null // TU-ID z.B. "ab12cdef"
firstName = null
lastName = null
// Optionally require tests for prepareSubmission task. Default is true
requireTests = true
}
// !! Achtung !!
// Die studentId (TU-ID) ist keine Matrikelnummer
// Richtig z.B. ab12cdef
// Falsch z.B. 1234567
repositories {
mavenCentral()
}
dependencies {
// FOPBot available in all source sets
implementation("org.sourcegrade:fopbot:0.1.0")
// JUnit only available in "test" source set (./src/test)
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
application {
mainClass.set("h01.Task1")
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
}
jar {
enabled = false // only enable shadowJar
}
shadowJar {
archiveFileName.set("h01-nicht-abgeben.jar")
}
test {
useJUnitPlatform()
}
}