diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2021-05-07 16:26:10 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-07 16:26:10 +0200 |
| commit | 6779f62e6f54b783da348dc1aba248656f7956f7 (patch) | |
| tree | 068a38613d29bdbd4fe39aee90fde86343c656f3 /opendc-simulator | |
| parent | d60e230c29beeeaa825987d5abf43c1e6f450dad (diff) | |
| parent | efea162372be99beb4de90929629c7ebccdb8d84 (diff) | |
build: Use Gradle version catalog
This pull request updates the Gradle build configuration to use the new version
catalog functionality, which allows us to store our dependency versions in a
centralized file located at `gradle/libs.versions.toml`.
Our previous approach stored the versions in `gradle.properties`.
The benefit of this approach however is that (1) it will be supported by
Gradle and (2) it allows us to access dependencies safely.
Diffstat (limited to 'opendc-simulator')
4 files changed, 4 insertions, 4 deletions
diff --git a/opendc-simulator/opendc-simulator-compute/build.gradle.kts b/opendc-simulator/opendc-simulator-compute/build.gradle.kts index a7d396c7..4eb0be33 100644 --- a/opendc-simulator/opendc-simulator-compute/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-compute/build.gradle.kts @@ -34,5 +34,5 @@ dependencies { api(projects.opendcSimulator.opendcSimulatorResources) implementation(projects.opendcSimulator.opendcSimulatorCore) implementation(projects.opendcUtils) - implementation("org.yaml:snakeyaml:1.28") + implementation(libs.yaml) } diff --git a/opendc-simulator/opendc-simulator-core/build.gradle.kts b/opendc-simulator/opendc-simulator-core/build.gradle.kts index 485bf5a6..6dbf4199 100644 --- a/opendc-simulator/opendc-simulator-core/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-core/build.gradle.kts @@ -29,5 +29,5 @@ plugins { dependencies { api(platform(projects.opendcPlatform)) - api("org.jetbrains.kotlinx:kotlinx-coroutines-core") + api(libs.kotlinx.coroutines) } diff --git a/opendc-simulator/opendc-simulator-failures/build.gradle.kts b/opendc-simulator/opendc-simulator-failures/build.gradle.kts index 6c266d23..57cd0a35 100644 --- a/opendc-simulator/opendc-simulator-failures/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-failures/build.gradle.kts @@ -28,5 +28,5 @@ plugins { dependencies { api(platform(projects.opendcPlatform)) - api("org.jetbrains.kotlinx:kotlinx-coroutines-core") + api(libs.kotlinx.coroutines) } diff --git a/opendc-simulator/opendc-simulator-resources/build.gradle.kts b/opendc-simulator/opendc-simulator-resources/build.gradle.kts index 08e0bc78..e4ffc3ff 100644 --- a/opendc-simulator/opendc-simulator-resources/build.gradle.kts +++ b/opendc-simulator/opendc-simulator-resources/build.gradle.kts @@ -31,7 +31,7 @@ plugins { dependencies { api(platform(projects.opendcPlatform)) - api("org.jetbrains.kotlinx:kotlinx-coroutines-core") + api(libs.kotlinx.coroutines) implementation(projects.opendcUtils) jmhImplementation(projects.opendcSimulator.opendcSimulatorCore) |
