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-workflow/opendc-workflow-api/build.gradle.kts | 5 ++--- .../opendc-workflow-service/build.gradle.kts | 18 +++++++++--------- 2 files changed, 11 insertions(+), 12 deletions(-) (limited to 'opendc-workflow') diff --git a/opendc-workflow/opendc-workflow-api/build.gradle.kts b/opendc-workflow/opendc-workflow-api/build.gradle.kts index d3e67bee..45657d27 100644 --- a/opendc-workflow/opendc-workflow-api/build.gradle.kts +++ b/opendc-workflow/opendc-workflow-api/build.gradle.kts @@ -28,8 +28,7 @@ plugins { } dependencies { - api(platform(project(":opendc-platform"))) - api(project(":opendc-compute:opendc-compute-api")) - implementation(project(":opendc-utils")) + api(platform(projects.opendcPlatform)) + api(projects.opendcCompute.opendcComputeApi) implementation("io.github.microutils:kotlin-logging") } diff --git a/opendc-workflow/opendc-workflow-service/build.gradle.kts b/opendc-workflow/opendc-workflow-service/build.gradle.kts index 040a9ff6..8cc66e4c 100644 --- a/opendc-workflow/opendc-workflow-service/build.gradle.kts +++ b/opendc-workflow/opendc-workflow-service/build.gradle.kts @@ -30,17 +30,17 @@ plugins { } dependencies { - api(platform(project(":opendc-platform"))) - api(project(":opendc-workflow:opendc-workflow-api")) - api(project(":opendc-compute:opendc-compute-api")) - api(project(":opendc-telemetry:opendc-telemetry-api")) - implementation(project(":opendc-utils")) + api(platform(projects.opendcPlatform)) + api(projects.opendcWorkflow.opendcWorkflowApi) + 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(project(":opendc-compute:opendc-compute-simulator")) - testImplementation(project(":opendc-format")) - testImplementation(project(":opendc-telemetry:opendc-telemetry-sdk")) + testImplementation(projects.opendcSimulator.opendcSimulatorCore) + testImplementation(projects.opendcCompute.opendcComputeSimulator) + testImplementation(projects.opendcFormat) + testImplementation(projects.opendcTelemetry.opendcTelemetrySdk) testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:${versions["jackson-module-kotlin"]}") testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl") } -- cgit v1.2.3