Skip to content

Commit

Permalink
chore(deps): add ktor client content negotiation and ktor json serial…
Browse files Browse the repository at this point in the history
…ization dependencies
  • Loading branch information
AndreaGiulianelli committed May 18, 2023
1 parent 519f64c commit 9c57a44
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ repositories {
dependencies {
implementation(libs.kotlin.stdlib)
implementation(libs.kotlin.serialization.json)
implementation(libs.ktor.client.content.negotiation)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.engine.okhttp)
implementation(libs.ktor.content.negotiation.json)
testImplementation(libs.bundles.kotlin.testing)
}

Expand All @@ -48,3 +50,7 @@ tasks.withType<Test> {
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}

application {
mainClass.set("AppKt")
}
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ kotest-junit5 = { module = "io.kotest:kotest-runner-junit5", version.ref = "kote
kotest-assertions-core = { module = "io.kotest:kotest-assertions-core", version.ref = "kotest" }
kotest-assertions-core-jvm = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "kotest" }
kotlin-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version = "1.5.1" }
ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
ktor-client-engine-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
ktor-content-negotiation-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }

[bundles]
kotlin-testing = ["kotest-junit5", "kotest-assertions-core", "kotest-assertions-core-jvm"]
Expand Down

0 comments on commit 9c57a44

Please sign in to comment.