build(connector): move implementation to libs.versions.toml

This commit is contained in:
Anthony Berg
2024-05-05 16:35:43 +01:00
parent 1b67f8605d
commit 4a63d2b327
4 changed files with 81 additions and 81 deletions

View File

@@ -1,20 +1,10 @@
plugins {
alias(libs.plugins.kotlinMultiplatform)
kotlin("plugin.serialization") version "1.9.23"
id("app.cash.sqldelight") version "2.0.2"
kotlin("plugin.serialization") version libs.versions.kotlin
alias(libs.plugins.sqldelight)
}
val coroutinesVersion = "1.8.0"
val ktorVersion = "2.3.9"
val sqlDelightVersion = "2.0.2"
val dateTimeVersion = "0.5.0"
val sl4jVersion = "2.0.13"
val vdmjVersion = "4.5.0"
// Testing Dependencies
val jupyterVersion = "5.10.1"
kotlin {
jvm()
jvmToolchain(21)
@@ -22,25 +12,22 @@ kotlin {
sourceSets {
commonMain.dependencies {
// put your Multiplatform dependencies here
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("app.cash.sqldelight:sqlite-driver:$sqlDelightVersion")
implementation("app.cash.sqldelight:coroutines-extensions:$sqlDelightVersion")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:$dateTimeVersion")
implementation("org.slf4j:slf4j-api:$sl4jVersion")
implementation("org.slf4j:slf4j-reload4j:$sl4jVersion")
implementation("dk.au.ece.vdmj:vdmj:$vdmjVersion")
// this feels like the most godawful hack I have created, I am ashamed
implementation("gov.nasa.xpc:xpc:1.4.0-SNAPSHOT")
implementation(libs.kotlinx.coroutines.core)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.sqldelight.driver)
implementation(libs.sqldelight.coroutines.extensions)
implementation(libs.kotlinx.datetime)
implementation(libs.slf4j.api)
implementation(libs.slf4j.reload4j)
implementation(libs.vdmj)
implementation(libs.xpc)
}
commonTest.dependencies {
implementation(libs.kotlin.test)
implementation("org.junit.jupiter:junit-jupiter:$jupyterVersion")
implementation(libs.junit.api)
}
}
}