-
Notifications
You must be signed in to change notification settings - Fork 10
/
settings.gradle.kts
108 lines (97 loc) · 4.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@file:Suppress("KDocMissingDocumentation")
rootProject.name = "lavakord"
include(
"example",
"kord", // GitHub Actions gets mad about this and I can't reproduce this locally
"jsExample",
"core",
// ":plugins:kspProcessor",
":plugins:sponsorblock",
":plugins:lavasrc",
":plugins:lavasearch",
":plugins:lyrics",
"java",
"jda",
"jda-java"
)
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
resolutionStrategy {
repositories {
gradlePluginPortal()
maven("https://europe-west3-maven.pkg.dev/mik-music/kord")
}
}
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
val codegen = version("codegen", "main-SNAPSHOT")
kotlinx()
ktor()
ksp()
library("kord-core", "dev.kord", "kord-core").version("0.15.0")
library(
"kord-ksp-annotations",
"dev.kord",
"kord-ksp-annotations"
).version("feature-publish-processor-SNAPSHOT")
library(
"kord-ksp-processors",
"dev.kord",
"kord-ksp-processors"
).version("feature-publish-processor-SNAPSHOT")
library("junit-jupiter-engine", "org.junit.jupiter", "junit-jupiter-engine").version("5.11.3")
library("kotlinlogging", "io.github.oshai", "kotlin-logging").version("7.0.0")
library("sl4fj-simple", "org.slf4j", "slf4j-simple").version("2.0.16")
library("kotlinx-nodejs", "org.jetbrains.kotlin-wrappers", "kotlin-node").version("22.5.4-pre.820")
library("lavalink-protocol", "dev.arbjerg.lavalink", "protocol").version("4.0.8")
library("lyrics-protocol", "dev.schlaubi.lyrics", "protocol").version("2.6.1")
library(
"lavasearch-protocol",
"com.github.topi314.lavasearch",
"lavasearch-protocol"
).version("1.0.0")
library(
"lavasrc-protocol",
"com.github.topi314.lavasrc",
"protocol"
).version("4.3.0")
library("kotlinpoet", "com.squareup", "kotlinpoet-ksp").version("2.0.0")
library("codegen", "dev.kord.codegen", "kotlinpoet").versionRef(codegen)
library("codegen-ksp", "dev.kord.codegen", "ksp").versionRef(codegen)
library("codegen-ksp-annotations", "dev.kord.codegen", "ksp-annotations").versionRef(codegen)
library("codegen-ksp-processor", "dev.kord.codegen", "ksp-processor").versionRef(codegen)
}
}
}
fun VersionCatalogBuilder.kotlinx() {
val coroutines = version("coroutines", "1.9.0")
library("kotlinx-coroutines-core", "org.jetbrains.kotlinx", "kotlinx-coroutines-core").versionRef(coroutines)
library("kotlinx-coroutines-jdk8", "org.jetbrains.kotlinx", "kotlinx-coroutines-jdk8").versionRef(coroutines)
library("kotlinx-coroutines-jdk9", "org.jetbrains.kotlinx", "kotlinx-coroutines-jdk9").versionRef(coroutines)
library("kotlinx-coroutines-test", "org.jetbrains.kotlinx", "kotlinx-coroutines-test").versionRef(coroutines)
library("kotlinx-serialization-json", "org.jetbrains.kotlinx", "kotlinx-serialization-json").version("1.7.3")
library("kotlinx-datetime", "org.jetbrains.kotlinx", "kotlinx-datetime").version("0.6.1")
plugin("kotlinx-atomicfu", "org.jetbrains.kotlinx.atomicfu").version("0.26.0")
}
fun VersionCatalogBuilder.ktor() {
val ktor = version("ktor", "3.0.1")
library("ktor-io", "io.ktor", "ktor-io").versionRef(ktor)
library("ktor-utils", "io.ktor", "ktor-utils").versionRef(ktor)
library("ktor-client-websockets", "io.ktor", "ktor-client-websockets").versionRef(ktor)
library("ktor-client-core", "io.ktor", "ktor-client-core").versionRef(ktor)
library("ktor-client-resources", "io.ktor", "ktor-client-resources").versionRef(ktor)
library("ktor-serialization-kotlinx-json", "io.ktor", "ktor-serialization-kotlinx-json").versionRef(ktor)
library("ktor-client-content-negotiation", "io.ktor", "ktor-client-content-negotiation").versionRef(ktor)
library("ktor-client-logging", "io.ktor", "ktor-client-logging").versionRef(ktor)
library("ktor-client-okhttp", "io.ktor", "ktor-client-okhttp").versionRef(ktor)
library("ktor-client-js", "io.ktor", "ktor-client-js").versionRef(ktor)
library("ktor-client-mock", "io.ktor", "ktor-client-mock").versionRef(ktor)
}
fun VersionCatalogBuilder.ksp() {
val ksp = version("ksp", "2.1.0-1.0.28")
library("ksp-api", "com.google.devtools.ksp", "symbol-processing-api").versionRef(ksp)
plugin("ksp", "com.google.devtools.ksp").versionRef(ksp)
plugin("gradle-tools", "dev.kord.gradle-tools").version("1.9.2")
}