summaryrefslogtreecommitdiff
path: root/simulator/opendc-simulator
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-02-23 11:46:06 +0100
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-02-23 11:46:06 +0100
commit0b092b352dc29ce69f6f126eb7857a1243a6ef62 (patch)
tree44047aba0874b80ffd406cfc6c7776bde0eaaf90 /simulator/opendc-simulator
parentbde79549149eca269c033302729ba06043efb29c (diff)
Extract testing conventions from Kotlin conventions
This change extracts the configuration for test from the Kotlin library conventions.
Diffstat (limited to 'simulator/opendc-simulator')
-rw-r--r--simulator/opendc-simulator/opendc-simulator-compute/build.gradle.kts6
-rw-r--r--simulator/opendc-simulator/opendc-simulator-core/build.gradle.kts4
-rw-r--r--simulator/opendc-simulator/opendc-simulator-failures/build.gradle.kts4
3 files changed, 6 insertions, 8 deletions
diff --git a/simulator/opendc-simulator/opendc-simulator-compute/build.gradle.kts b/simulator/opendc-simulator/opendc-simulator-compute/build.gradle.kts
index 1c50ed8d..7354cad6 100644
--- a/simulator/opendc-simulator/opendc-simulator-compute/build.gradle.kts
+++ b/simulator/opendc-simulator/opendc-simulator-compute/build.gradle.kts
@@ -23,13 +23,11 @@
description = "Library for simulation of cloud computing components"
plugins {
- `kotlin-library-convention`
+ `kotlin-library-conventions`
+ `testing-conventions`
}
dependencies {
api(project(":opendc-simulator:opendc-simulator-core"))
implementation(project(":opendc-utils"))
-
- testImplementation("org.junit.jupiter:junit-jupiter-api:${Library.JUNIT_JUPITER}")
- testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${Library.JUNIT_JUPITER}")
}
diff --git a/simulator/opendc-simulator/opendc-simulator-core/build.gradle.kts b/simulator/opendc-simulator/opendc-simulator-core/build.gradle.kts
index a740dcf3..79d3463f 100644
--- a/simulator/opendc-simulator/opendc-simulator-core/build.gradle.kts
+++ b/simulator/opendc-simulator/opendc-simulator-core/build.gradle.kts
@@ -24,9 +24,9 @@ description = "Simulation-specific code for use in OpenDC"
/* Build configuration */
plugins {
- `kotlin-library-convention`
+ `kotlin-library-conventions`
}
dependencies {
- api("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Library.KOTLINX_COROUTINES}")
+ api("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Versions.KOTLINX_COROUTINES}")
}
diff --git a/simulator/opendc-simulator/opendc-simulator-failures/build.gradle.kts b/simulator/opendc-simulator/opendc-simulator-failures/build.gradle.kts
index 1c30506f..d2193c0d 100644
--- a/simulator/opendc-simulator/opendc-simulator-failures/build.gradle.kts
+++ b/simulator/opendc-simulator/opendc-simulator-failures/build.gradle.kts
@@ -23,9 +23,9 @@
description = "Failure models for OpenDC"
plugins {
- `kotlin-library-convention`
+ `kotlin-library-conventions`
}
dependencies {
- api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Library.KOTLINX_COROUTINES}")
+ api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.KOTLINX_COROUTINES}")
}