Skip to content

Commit

Permalink
refactor: Added the rest of the libraries to libs.versions.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe Maas committed Oct 28, 2024
1 parent cbcbad3 commit ea60a40
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 18 deletions.
11 changes: 11 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ springboot = "3.3.1"
springDependencyManagement = "1.1.5"
kermitLogging = "2.0.4"
kotlinxDatetime = "0.6.1"
sqldelight = "2.0.2"
hikari = "5.1.0"
postgresql = "42.7.3"
nimbusJoseJwt = "9.40"

[libraries]
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
Expand All @@ -41,13 +45,16 @@ kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-t
kotlinx-coroutines-test-js = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test-js", version.ref = "kotlinxCoroutines" }
kermit-logging = { module = "co.touchlab:kermit", version.ref = "kermitLogging"}
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-core-jvm = { module = "io.ktor:ktor-client-core-jvm", version.ref = "ktor" }
ktor-client-core-js = { module = "io.ktor:ktor-client-core-js", version.ref = "ktor" }
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor" }
ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
ktor-client-auth = { module = "io.ktor:ktor-client-auth", version.ref = "ktor" }
ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }
ktor-client-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
ktor-client-mock-js = { module = "io.ktor:ktor-client-mock-js", version.ref = "ktor" }
ktor-client-cio = { module = "io.ktor:ktor-client-cio", version.ref = "ktor" }
ktor-client-cio-jvm = { module = "io.ktor:ktor-client-cio-jvm", version.ref = "ktor" }
ktor-client-js = { module = "io.ktor:ktor-client-js", version.ref = "ktor" }

kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect" }
Expand All @@ -60,6 +67,10 @@ postgres = { module = "org.postgresql:postgresql" }
springboot-testcontainer = { group = "org.springframework.boot", name = "spring-boot-testcontainers"}
testcontainer-postgres = { group = "org.testcontainers", name = "postgresql"}
testcontainer-junit = { group = "org.testcontainers", name = "junit-jupiter"}
sqldelight-jdbc-driver = { group = "app.cash.sqldelight", name = "jdbc-driver", version.ref = "sqldelight" }
hikari = { group = "com.zaxxer", name = "HikariCP", version.ref = "hikari" }
postgresql = { group = "org.postgresql", name = "postgresql", version.ref = "postgresql" }
nimbus-jose-jwt = { group = "com.nimbusds", name = "nimbus-jose-jwt", version.ref = "nimbusJoseJwt" }
kotlinx-datetime = { module = "org.jetbrains.kotlinx:kotlinx-datetime", version.ref = "kotlinxDatetime" }


Expand Down
8 changes: 4 additions & 4 deletions modules/local-kms/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ kotlin {

jvmMain {
dependencies {
implementation("app.cash.sqldelight:jdbc-driver:2.0.2")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("org.postgresql:postgresql:42.7.3")
implementation("com.nimbusds:nimbus-jose-jwt:9.40")
implementation(libs.sqldelight.jdbc.driver)
implementation(libs.hikari)
implementation(libs.postgresql)
implementation(libs.nimbus.jose.jwt)
}
}

Expand Down
1 change: 0 additions & 1 deletion modules/openapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ project.extra.set("openApiPackage", "com.sphereon.oid.fed.openapi")

val profiles = project.properties["profiles"]?.toString()?.split(",") ?: emptyList()
val isModelsOnlyProfile = profiles.contains("models-only")
val ktorVersion = "2.3.11"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion modules/openid-federation-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ kotlin {
val jvmMain by getting {
dependencies {
implementation(libs.ktor.client.cio)
implementation("com.nimbusds:nimbus-jose-jwt:9.40")
implementation(libs.nimbus.jose.jwt)
}
}

Expand Down
16 changes: 7 additions & 9 deletions modules/openid-federation-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ plugins {
kotlin("plugin.serialization") version "2.0.0"
}

val ktorVersion = "2.3.11"

repositories {
mavenCentral()
mavenLocal()
Expand Down Expand Up @@ -70,9 +68,9 @@ kotlin {
}
val jvmMain by getting {
dependencies {
implementation("io.ktor:ktor-client-core-jvm:$ktorVersion")
runtimeOnly("io.ktor:ktor-client-cio-jvm:$ktorVersion")
implementation("com.nimbusds:nimbus-jose-jwt:9.40")
implementation(libs.ktor.client.core.jvm)
runtimeOnly(libs.ktor.client.cio.jvm)
implementation(libs.nimbus.jose.jwt)
}
}
val jvmTest by getting {
Expand Down Expand Up @@ -127,11 +125,11 @@ kotlin {

val jsMain by getting {
dependencies {
runtimeOnly("io.ktor:ktor-client-core-js:$ktorVersion")
runtimeOnly("io.ktor:ktor-client-js:$ktorVersion")
runtimeOnly(libs.ktor.client.core.js)
runtimeOnly(libs.ktor.client.js)
implementation(npm("typescript", "5.5.3"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC")
implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.coroutines.core.js)
}
}

Expand Down
6 changes: 3 additions & 3 deletions modules/persistence/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ kotlin {

jvmMain {
dependencies {
implementation("app.cash.sqldelight:jdbc-driver:2.0.2")
implementation("com.zaxxer:HikariCP:5.1.0")
implementation("org.postgresql:postgresql:42.7.3")
implementation(libs.sqldelight.jdbc.driver)
implementation(libs.hikari)
implementation(libs.postgresql)
}
}
}
Expand Down

0 comments on commit ea60a40

Please sign in to comment.