summaryrefslogtreecommitdiff
path: root/opendc-simulator
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-05 20:50:18 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-06 14:04:05 +0200
commitd22a757a86107ee35a64e1eb23282770cdd901dd (patch)
tree0f747a501ad1c01f230df8d4f8b25fc7cdeb9c5c /opendc-simulator
parent25e2fd97409311c89030e51e1a78211d335709b9 (diff)
build: Use type-safe project accessors
This change updates the build scripts to use type-safe project accessors when specifying build dependencies between modules.
Diffstat (limited to 'opendc-simulator')
-rw-r--r--opendc-simulator/opendc-simulator-compute/build.gradle.kts8
-rw-r--r--opendc-simulator/opendc-simulator-core/build.gradle.kts2
-rw-r--r--opendc-simulator/opendc-simulator-failures/build.gradle.kts2
-rw-r--r--opendc-simulator/opendc-simulator-resources/build.gradle.kts8
4 files changed, 10 insertions, 10 deletions
diff --git a/opendc-simulator/opendc-simulator-compute/build.gradle.kts b/opendc-simulator/opendc-simulator-compute/build.gradle.kts
index 4b0069e3..a7d396c7 100644
--- a/opendc-simulator/opendc-simulator-compute/build.gradle.kts
+++ b/opendc-simulator/opendc-simulator-compute/build.gradle.kts
@@ -30,9 +30,9 @@ plugins {
}
dependencies {
- api(platform(project(":opendc-platform")))
- api(project(":opendc-simulator:opendc-simulator-core"))
- api(project(":opendc-simulator:opendc-simulator-resources"))
- implementation(project(":opendc-utils"))
+ api(platform(projects.opendcPlatform))
+ api(projects.opendcSimulator.opendcSimulatorResources)
+ implementation(projects.opendcSimulator.opendcSimulatorCore)
+ implementation(projects.opendcUtils)
implementation("org.yaml:snakeyaml:1.28")
}
diff --git a/opendc-simulator/opendc-simulator-core/build.gradle.kts b/opendc-simulator/opendc-simulator-core/build.gradle.kts
index 3ba0d8c3..485bf5a6 100644
--- a/opendc-simulator/opendc-simulator-core/build.gradle.kts
+++ b/opendc-simulator/opendc-simulator-core/build.gradle.kts
@@ -28,6 +28,6 @@ plugins {
}
dependencies {
- api(platform(project(":opendc-platform")))
+ api(platform(projects.opendcPlatform))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core")
}
diff --git a/opendc-simulator/opendc-simulator-failures/build.gradle.kts b/opendc-simulator/opendc-simulator-failures/build.gradle.kts
index 0f6b2de2..6c266d23 100644
--- a/opendc-simulator/opendc-simulator-failures/build.gradle.kts
+++ b/opendc-simulator/opendc-simulator-failures/build.gradle.kts
@@ -27,6 +27,6 @@ plugins {
}
dependencies {
- api(platform(project(":opendc-platform")))
+ api(platform(projects.opendcPlatform))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core")
}
diff --git a/opendc-simulator/opendc-simulator-resources/build.gradle.kts b/opendc-simulator/opendc-simulator-resources/build.gradle.kts
index 3b0a197c..08e0bc78 100644
--- a/opendc-simulator/opendc-simulator-resources/build.gradle.kts
+++ b/opendc-simulator/opendc-simulator-resources/build.gradle.kts
@@ -30,10 +30,10 @@ plugins {
}
dependencies {
- api(platform(project(":opendc-platform")))
+ api(platform(projects.opendcPlatform))
api("org.jetbrains.kotlinx:kotlinx-coroutines-core")
- implementation(project(":opendc-utils"))
+ implementation(projects.opendcUtils)
- jmhImplementation(project(":opendc-simulator:opendc-simulator-core"))
- testImplementation(project(":opendc-simulator:opendc-simulator-core"))
+ jmhImplementation(projects.opendcSimulator.opendcSimulatorCore)
+ testImplementation(projects.opendcSimulator.opendcSimulatorCore)
}