-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
60 lines (46 loc) · 1.77 KB
/
settings.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
include(":nats-core")
include(":nats-core:transport-tcp")
include(":nats-core:transport-ws")
include(":nats-jetstream")
include(":nats-micro")
include(":dev")
//include(":dev:bench")
rootProject.name = "nats"
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
ktor()
common()
}
}
}
fun VersionCatalogBuilder.ktor() {
val ktor = version("ktor", "2.3.10")
library("ktor-network", "io.ktor", "ktor-network").versionRef(ktor)
library("ktor-network-tls", "io.ktor", "ktor-network-tls").versionRef(ktor)
library("ktor-io", "io.ktor", "ktor-io").versionRef(ktor)
library("ktor-http", "io.ktor", "ktor-http").versionRef(ktor)
library("ktor-client-core", "io.ktor", "ktor-client-core").versionRef(ktor)
library("ktor-client-websockets", "io.ktor", "ktor-client-websockets").versionRef(ktor)
}
fun VersionCatalogBuilder.common() {
/* naibu */
val naibu = version("naibu", "1.4-RC.8")
library("naibu-core", "naibu.stdlib", "naibu-core").versionRef(naibu)
library("naibu-io", "naibu.stdlib", "naibu-io").versionRef(naibu)
library("naibu-ktor-io", "naibu.stdlib", "naibu-ktor-io").versionRef(naibu)
/* kotlin */
library("kotlin-logging", "io.github.oshai", "kotlin-logging").version("6.0.9")
/* coroutines */
library("kx-coroutines", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").version("1.8.0")
library("kyuso", "fun.dimensional", "kyuso").version("1.1.0")
/* coroutines */
library("kx-serialization", "org.jetbrains.kotlinx", "kotlinx-serialization-json").version("1.6.3")
}