From f1daebc9d49910d9300da6616bc30baf2ab9650d Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 23 Apr 2022 11:43:22 +0200 Subject: build: Enable testing for all library modules This change updates the Gradle build configuration to ensure that all library modules (that will be published) use testing and are included in coverage reports. This should ensure the public modules remain well tested. --- opendc-simulator/opendc-simulator-compute/build.gradle.kts | 2 -- opendc-simulator/opendc-simulator-flow/build.gradle.kts | 2 -- opendc-simulator/opendc-simulator-network/build.gradle.kts | 2 -- opendc-simulator/opendc-simulator-power/build.gradle.kts | 2 -- 4 files changed, 8 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 fb516ccf..f3f90bb6 100644 --- a/opendc-simulator/opendc-simulator-compute/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-compute/build.gradle.kts @@ -24,8 +24,6 @@ description = "Library for simulating computing workloads" plugins { `kotlin-library-conventions` - `testing-conventions` - `jacoco-conventions` `benchmark-conventions` } diff --git a/opendc-simulator/opendc-simulator-flow/build.gradle.kts b/opendc-simulator/opendc-simulator-flow/build.gradle.kts index 3f08071a..04d46607 100644 --- a/opendc-simulator/opendc-simulator-flow/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-flow/build.gradle.kts @@ -24,8 +24,6 @@ description = "High-performance flow simulator" plugins { `kotlin-library-conventions` - `testing-conventions` - `jacoco-conventions` `benchmark-conventions` } diff --git a/opendc-simulator/opendc-simulator-network/build.gradle.kts b/opendc-simulator/opendc-simulator-network/build.gradle.kts index 0cc7763e..a7f309c0 100644 --- a/opendc-simulator/opendc-simulator-network/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-network/build.gradle.kts @@ -24,8 +24,6 @@ description = "Library for simulating datacenter network components" plugins { `kotlin-library-conventions` - `testing-conventions` - `jacoco-conventions` } dependencies { diff --git a/opendc-simulator/opendc-simulator-power/build.gradle.kts b/opendc-simulator/opendc-simulator-power/build.gradle.kts index 59859403..ea36ce75 100644 --- a/opendc-simulator/opendc-simulator-power/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-power/build.gradle.kts @@ -24,8 +24,6 @@ description = "Library for simulating datacenter power components" plugins { `kotlin-library-conventions` - `testing-conventions` - `jacoco-conventions` } dependencies { -- cgit v1.2.3 From e1a5b581ae957cc5b07c6083557cd3bcc137894b Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Sat, 23 Apr 2022 12:11:44 +0200 Subject: build: Move modules into subgroups This change updates the Gradle build configuration of the project to publish the different type of modules (e.g., opendc-compute, opendc-simulator) into their own groups. --- opendc-simulator/build.gradle.kts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'opendc-simulator') diff --git a/opendc-simulator/build.gradle.kts b/opendc-simulator/build.gradle.kts index e69de29b..b29a2fdb 100644 --- a/opendc-simulator/build.gradle.kts +++ b/opendc-simulator/build.gradle.kts @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2022 AtLarge Research + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +description = "Low-level simulation components of OpenDC" + +subprojects { + group = "org.opendc.simulator" +} -- cgit v1.2.3