-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
49 lines (40 loc) · 1.39 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
rootProject.name = "ksocks-root"
enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
application()
net()
common()
}
}
}
/* application-specific libraries */
fun VersionCatalogBuilder.application() {
/* logging */
library("kotlin-logging", "io.github.microutils", "kotlin-logging").version("2.1.23")
library("slf4j-api", "org.slf4j", "slf4j-api").version("1.7.36")
library("logback", "ch.qos.logback", "logback-classic").version("1.2.11")
}
/* common libraries */
fun VersionCatalogBuilder.common() {
version("kotlinx-coroutines", "1.6.4")
/* kotlin */
library("kotlin-stdlib", "org.jetbrains.kotlin", "kotlin-stdlib").version("1.7.10")
library("kotlinx-datetime", "org.jetbrains.kotlinx", "kotlinx-datetime").version("0.4.0")
library("kotlinx-coroutines", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").versionRef("kotlinx-coroutines")
/* bundles */
bundle("common", listOf(
"kotlin-stdlib",
"kotlinx-coroutines",
"kotlin-logging"
))
}
/* networking */
fun VersionCatalogBuilder.net() {
/* ktor */
val ktor = version("ktor", "2.1.0")
// server/client
library("ktor-network", "io.ktor", "ktor-network").versionRef(ktor)
}