-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (53 loc) · 1.44 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
plugins {
id 'java'
//id 'application'
}
group 'org.example'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation("org.json:json:20220924")
implementation group: 'it.unimi.dsi', name: 'fastutil', version: '8.5.11'
implementation 'org.junit.jupiter:junit-jupiter:5.8.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
}
compileJava {
sourceCompatibility = '17'
targetCompatibility = '17'
}
/* Might help in future projects?
application {
mainClass = 'server.DijkstraServer'
}
run {
standardInput = System.in
}
*/
tasks.register('runDijkstraServer', JavaExec) {
dependsOn 'classes'
main= 'server.DijkstraServer'
classpath = sourceSets.main.runtimeClasspath
}
tasks.register('runTestBenchmark', JavaExec) {
dependsOn 'classes'
main= 'execution.Benchmark'
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
}
test {
useJUnitPlatform()
// Enable preview features like pattern matching for tests
jvmArgs(['--enable-preview'])
testLogging {
// Sources: https://docs.gradle.org/current/javadoc/org/gradle/api/tasks/testing/logging/TestLoggingContainer.html
events "passed"
debug {
events "started", "skipped", "failed"
exceptionFormat "full"
}
info.events = ["failed", "skipped"]
}
}