-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
43 lines (35 loc) · 1.28 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
plugins {
id("org.jetbrains.kotlin.jvm") version "1.4.31"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.opendc:opendc-compute-simulator:2.0")
implementation("org.opendc:opendc-simulator-core:2.0")
implementation("org.opendc:opendc-workflow-service:2.0")
implementation("org.opendc:opendc-format:2.0")
implementation("org.opendc:opendc-telemetry-sdk:2.0")
implementation("org.opendc:opendc-harness-api:2.0")
runtimeOnly("org.opendc:opendc-harness-junit5:2.0")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:2.14.1")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
tasks.shadowJar {
dependencies {
// Do not include the JUnit 5 runner in the final shadow jar, since it is only necessary for development
// inside IDE
exclude("org.opendc:opendc-harness-junit5")
}
}
tasks.register<Test>("experiment") {
// Ensure JUnit Platform is used for resolving tests
useJUnitPlatform()
description = "Runs OpenDC experiments"
group = "application"
testClassesDirs = sourceSets["main"].output.classesDirs
classpath = sourceSets["main"].runtimeClasspath
}