summaryrefslogtreecommitdiff
path: root/opendc-web
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-web
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-web')
-rw-r--r--opendc-web/opendc-web-runner/build.gradle.kts13
1 files changed, 6 insertions, 7 deletions
diff --git a/opendc-web/opendc-web-runner/build.gradle.kts b/opendc-web/opendc-web-runner/build.gradle.kts
index 60a24b92..b7eb223c 100644
--- a/opendc-web/opendc-web-runner/build.gradle.kts
+++ b/opendc-web/opendc-web-runner/build.gradle.kts
@@ -40,12 +40,11 @@ dependencies {
implementation(projects.opendcSimulator.opendcSimulatorCore)
implementation(projects.opendcTelemetry.opendcTelemetrySdk)
- implementation("io.github.microutils:kotlin-logging")
- implementation("com.github.ajalt.clikt:clikt:${versions["clikt"]}")
- implementation("com.fasterxml.jackson.module:jackson-module-kotlin:${versions["jackson-module-kotlin"]}")
- implementation("io.sentry:sentry-log4j2:${versions["sentry-log4j2"]}")
- implementation("org.mongodb:mongodb-driver-sync:${versions["mongodb-driver-sync"]}")
+ implementation(libs.kotlin.logging)
+ implementation(libs.clikt)
+ implementation(libs.jackson.module.kotlin)
+ implementation(libs.sentry.log4j2)
+ implementation(libs.mongodb)
- runtimeOnly("org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}")
- runtimeOnly("org.apache.logging.log4j:log4j-1.2-api:${versions.log4j}")
+ runtimeOnly(libs.log4j.slf4j)
}