summaryrefslogtreecommitdiff
path: root/opendc-compute
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-07 16:26:10 +0200
committerGitHub <noreply@github.com>2021-05-07 16:26:10 +0200
commit6779f62e6f54b783da348dc1aba248656f7956f7 (patch)
tree068a38613d29bdbd4fe39aee90fde86343c656f3 /opendc-compute
parentd60e230c29beeeaa825987d5abf43c1e6f450dad (diff)
parentefea162372be99beb4de90929629c7ebccdb8d84 (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-compute')
-rw-r--r--opendc-compute/opendc-compute-service/build.gradle.kts4
-rw-r--r--opendc-compute/opendc-compute-simulator/build.gradle.kts4
2 files changed, 4 insertions, 4 deletions
diff --git a/opendc-compute/opendc-compute-service/build.gradle.kts b/opendc-compute/opendc-compute-service/build.gradle.kts
index 4e1be97a..e0e48b0f 100644
--- a/opendc-compute/opendc-compute-service/build.gradle.kts
+++ b/opendc-compute/opendc-compute-service/build.gradle.kts
@@ -34,8 +34,8 @@ dependencies {
api(projects.opendcCompute.opendcComputeApi)
api(projects.opendcTelemetry.opendcTelemetryApi)
implementation(projects.opendcUtils)
- implementation("io.github.microutils:kotlin-logging")
+ implementation(libs.kotlin.logging)
testImplementation(projects.opendcSimulator.opendcSimulatorCore)
- testRuntimeOnly("org.apache.logging.log4j:log4j-slf4j-impl")
+ testRuntimeOnly(libs.log4j.slf4j)
}
diff --git a/opendc-compute/opendc-compute-simulator/build.gradle.kts b/opendc-compute/opendc-compute-simulator/build.gradle.kts
index 0d0a57ad..b31a2114 100644
--- a/opendc-compute/opendc-compute-simulator/build.gradle.kts
+++ b/opendc-compute/opendc-compute-simulator/build.gradle.kts
@@ -35,9 +35,9 @@ dependencies {
api(projects.opendcSimulator.opendcSimulatorCompute)
api(projects.opendcSimulator.opendcSimulatorFailures)
implementation(projects.opendcUtils)
- implementation("io.github.microutils:kotlin-logging")
+ implementation(libs.kotlin.logging)
testImplementation(projects.opendcSimulator.opendcSimulatorCore)
testImplementation(projects.opendcTelemetry.opendcTelemetrySdk)
- testRuntimeOnly("org.slf4j:slf4j-simple:${versions.slf4j}")
+ testRuntimeOnly(libs.slf4j.simple)
}