Skip to content

Commit f2a0852

Browse files
committed
Move ktor deps to buildSrc
1 parent 38eeed4 commit f2a0852

2 files changed

Lines changed: 48 additions & 5 deletions

File tree

buildSrc/src/main/kotlin/Dependencies.kt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ object Versions {
3131
const val kotlinx_collections_immutable = "0.3.5"
3232
const val kotlinx_coroutines = "1.6.4"
3333
const val kotlinx_serialization = "1.8.0"
34+
const val ktor = "3.1.3"
3435
const val licenser = "0.6.1"
3536
const val lmdb_java = "0.9.0"
3637
const val mockk = "1.13.3"
@@ -397,6 +398,48 @@ object Libs {
397398
name = "protoc-gen-grpc-kotlin",
398399
version = Versions.grpc_kotlin
399400
)
401+
402+
// https://github.com/ktorio/ktor
403+
val ktor_client_core = dep(
404+
group = "io.ktor",
405+
name = "ktor-client-core",
406+
version = Versions.ktor
407+
)
408+
val ktor_client_cio = dep(
409+
group = "io.ktor",
410+
name = "ktor-client-cio",
411+
version = Versions.ktor
412+
)
413+
val ktor_client_content_negotiation = dep(
414+
group = "io.ktor",
415+
name = "ktor-client-content-negotiation",
416+
version = Versions.ktor
417+
)
418+
val ktor_server_core = dep(
419+
group = "io.ktor",
420+
name = "ktor-server-core",
421+
version = Versions.ktor
422+
)
423+
val ktor_server_netty = dep(
424+
group = "io.ktor",
425+
name = "ktor-server-netty",
426+
version = Versions.ktor
427+
)
428+
val ktor_server_content_negotiation = dep(
429+
group = "io.ktor",
430+
name = "ktor-server-content-negotiation",
431+
version = Versions.ktor
432+
)
433+
val ktor_serialization_kotlinx_json = dep(
434+
group = "io.ktor",
435+
name = "ktor-serialization-kotlinx-json",
436+
version = Versions.ktor
437+
)
438+
val ktor_serialization_kotlinx_protobuf = dep(
439+
group = "io.ktor",
440+
name = "ktor-serialization-kotlinx-protobuf",
441+
version = Versions.ktor
442+
)
400443
}
401444

402445
object Plugins {

jacodb-ets/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ dependencies {
1818
implementation(Libs.kotlinx_coroutines_core)
1919
implementation(Libs.jdot)
2020
implementation(Libs.grpc_api)
21-
implementation("io.ktor:ktor-client-core")
22-
implementation("io.ktor:ktor-client-cio")
23-
implementation("io.ktor:ktor-client-content-negotiation")
24-
implementation("io.ktor:ktor-serialization-kotlinx-json")
25-
implementation("io.ktor:ktor-serialization-kotlinx-protobuf")
21+
implementation(Libs.ktor_client_core)
22+
implementation(Libs.ktor_client_cio)
23+
implementation(Libs.ktor_client_content_negotiation)
24+
implementation(Libs.ktor_serialization_kotlinx_json)
25+
implementation(Libs.ktor_serialization_kotlinx_protobuf)
2626

2727
testImplementation(kotlin("test"))
2828
testImplementation(Libs.mockk)

0 commit comments

Comments
 (0)