summaryrefslogtreecommitdiff
path: root/opendc-compute
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-compute
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-compute')
-rw-r--r--opendc-compute/opendc-compute-api/build.gradle.kts2
-rw-r--r--opendc-compute/opendc-compute-service/build.gradle.kts10
-rw-r--r--opendc-compute/opendc-compute-simulator/build.gradle.kts14
3 files changed, 13 insertions, 13 deletions
diff --git a/opendc-compute/opendc-compute-api/build.gradle.kts b/opendc-compute/opendc-compute-api/build.gradle.kts
index 835dbbb8..880ee03d 100644
--- a/opendc-compute/opendc-compute-api/build.gradle.kts
+++ b/opendc-compute/opendc-compute-api/build.gradle.kts
@@ -28,5 +28,5 @@ plugins {
}
dependencies {
- api(platform(project(":opendc-platform")))
+ api(platform(projects.opendcPlatform))
}
diff --git a/opendc-compute/opendc-compute-service/build.gradle.kts b/opendc-compute/opendc-compute-service/build.gradle.kts
index 909e2dcd..4e1be97a 100644
--- a/opendc-compute/opendc-compute-service/build.gradle.kts
+++ b/opendc-compute/opendc-compute-service/build.gradle.kts
@@ -30,12 +30,12 @@ plugins {
}
dependencies {
- api(platform(project(":opendc-platform")))
- api(project(":opendc-compute:opendc-compute-api"))
- api(project(":opendc-telemetry:opendc-telemetry-api"))
- implementation(project(":opendc-utils"))
+ api(platform(projects.opendcPlatform))
+ api(projects.opendcCompute.opendcComputeApi)
+ api(projects.opendcTelemetry.opendcTelemetryApi)
+ implementation(projects.opendcUtils)
implementation("io.github.microutils:kotlin-logging")
- testImplementation(project(":opendc-simulator:opendc-simulator-core"))
+ testImplementation(projects.opendcSimulator.opendcSimulatorCore)
testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl")
}
diff --git a/opendc-compute/opendc-compute-simulator/build.gradle.kts b/opendc-compute/opendc-compute-simulator/build.gradle.kts
index 3bf8a114..0d0a57ad 100644
--- a/opendc-compute/opendc-compute-simulator/build.gradle.kts
+++ b/opendc-compute/opendc-compute-simulator/build.gradle.kts
@@ -30,14 +30,14 @@ plugins {
}
dependencies {
- api(platform(project(":opendc-platform")))
- api(project(":opendc-compute:opendc-compute-service"))
- api(project(":opendc-simulator:opendc-simulator-compute"))
- api(project(":opendc-simulator:opendc-simulator-failures"))
- implementation(project(":opendc-utils"))
+ api(platform(projects.opendcPlatform))
+ api(projects.opendcCompute.opendcComputeService)
+ api(projects.opendcSimulator.opendcSimulatorCompute)
+ api(projects.opendcSimulator.opendcSimulatorFailures)
+ implementation(projects.opendcUtils)
implementation("io.github.microutils:kotlin-logging")
- testImplementation(project(":opendc-simulator:opendc-simulator-core"))
- testImplementation(project(":opendc-telemetry:opendc-telemetry-sdk"))
+ testImplementation(projects.opendcSimulator.opendcSimulatorCore)
+ testImplementation(projects.opendcTelemetry.opendcTelemetrySdk)
testRuntimeOnly("org.slf4j:slf4j-simple:${versions.slf4j}")
}