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-experiments-energy21/build.gradle.kts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'opendc-experiments/opendc-experiments-energy21') diff --git a/opendc-experiments/opendc-experiments-energy21/build.gradle.kts b/opendc-experiments/opendc-experiments-energy21/build.gradle.kts index fc37fc1c..1bebcea2 100644 --- a/opendc-experiments/opendc-experiments-energy21/build.gradle.kts +++ b/opendc-experiments/opendc-experiments-energy21/build.gradle.kts @@ -30,14 +30,15 @@ plugins { } dependencies { - api(platform(project(":opendc-platform"))) - api(project(":opendc-harness:opendc-harness-engine")) - implementation(project(":opendc-format")) - implementation(project(":opendc-simulator:opendc-simulator-core")) - implementation(project(":opendc-simulator:opendc-simulator-compute")) - implementation(project(":opendc-compute:opendc-compute-simulator")) - implementation(project(":opendc-experiments:opendc-experiments-capelin")) - implementation(project(":opendc-telemetry:opendc-telemetry-sdk")) + api(platform(projects.opendcPlatform)) + api(projects.opendcHarness.opendcHarnessApi) + implementation(projects.opendcFormat) + implementation(projects.opendcSimulator.opendcSimulatorCore) + implementation(projects.opendcSimulator.opendcSimulatorCompute) + implementation(projects.opendcSimulator.opendcSimulatorFailures) + implementation(projects.opendcCompute.opendcComputeSimulator) + implementation(projects.opendcExperiments.opendcExperimentsCapelin) + implementation(projects.opendcTelemetry.opendcTelemetrySdk) implementation("io.github.microutils:kotlin-logging") implementation("com.typesafe:config") -- cgit v1.2.3 From c244d7e42a88105fbec5356030ed266f1af0811e Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Wed, 5 May 2021 22:32:28 +0200 Subject: build: Prevent publishing application modules This change updates the Gradle build configuration so that the application modules (as opposed the libraries) are not published onto Maven Central. --- opendc-experiments/opendc-experiments-energy21/build.gradle.kts | 1 - 1 file changed, 1 deletion(-) (limited to 'opendc-experiments/opendc-experiments-energy21') diff --git a/opendc-experiments/opendc-experiments-energy21/build.gradle.kts b/opendc-experiments/opendc-experiments-energy21/build.gradle.kts index 1bebcea2..64e52f88 100644 --- a/opendc-experiments/opendc-experiments-energy21/build.gradle.kts +++ b/opendc-experiments/opendc-experiments-energy21/build.gradle.kts @@ -24,7 +24,6 @@ description = "Experiments for the OpenDC Energy work" /* Build configuration */ plugins { - `kotlin-library-conventions` `experiment-conventions` `testing-conventions` } -- cgit v1.2.3