From d22a757a86107ee35a64e1eb23282770cdd901dd Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 5 May 2021 20:50:18 +0200 Subject: build: Use type-safe project accessors This change updates the build scripts to use type-safe project accessors when specifying build dependencies between modules. --- opendc-compute/opendc-compute-api/build.gradle.kts | 2 +- opendc-compute/opendc-compute-service/build.gradle.kts | 10 +++++----- opendc-compute/opendc-compute-simulator/build.gradle.kts | 14 +++++++------- 3 files changed, 13 insertions(+), 13 deletions(-) (limited to 'opendc-compute') 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}") } -- cgit v1.2.3