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-simulator/opendc-simulator-compute/build.gradle.kts | 8 ++++---- opendc-simulator/opendc-simulator-core/build.gradle.kts | 2 +- opendc-simulator/opendc-simulator-failures/build.gradle.kts | 2 +- opendc-simulator/opendc-simulator-resources/build.gradle.kts | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'opendc-simulator') 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) } -- cgit v1.2.3