forked from kordlib/Lavalink.kt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
96 lines (84 loc) · 4 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
@file:Suppress("UnstableApiUsage", "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",
"java",
"jda",
"jda-java"
)
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
resolutionStrategy {
repositories {
gradlePluginPortal()
}
eachPlugin {
if (requested.id.id == "kotlinx-atomicfu") {
useModule("org.jetbrains.kotlinx:atomicfu-gradle-plugin:${requested.version}")
}
}
}
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
kotlinx()
ktor()
ksp()
library("kord-core", "dev.kord", "kord-core").version("0.10.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.9.3")
library("kotlinlogging", "io.github.microutils", "kotlin-logging").version("3.0.5")
library("sl4fj-simple", "org.slf4j", "slf4j-simple").version("2.0.7")
library("kotlinx-nodejs", "org.jetbrains.kotlin-wrappers", "kotlin-node").version("18.16.12-pre.594")
library("lavalink-protocol", "dev.arbjerg.lavalink", "protocol").version("4.0.0-beta.1")
library("kotlinpoet", "com.squareup", "kotlinpoet-ksp")
.version("1.14.2")
plugin("kotlinx-atomicfu", "kotlinx-atomicfu").version("0.21.0")
plugin("git-publish", "org.ajoberstar.git-publish").version("3.0.0")
}
}
}
fun VersionCatalogBuilder.kotlinx() {
val coroutines = version("coroutines", "1.7.1")
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.5.0")
library("kotlinx-datetime", "org.jetbrains.kotlinx", "kotlinx-datetime").version("0.4.0")
}
fun VersionCatalogBuilder.ktor() {
val ktor = version("ktor", "2.3.2")
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-cio", "io.ktor", "ktor-client-cio").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", "1.9.0-1.0.11")
library("ksp-api", "com.google.devtools.ksp", "symbol-processing-api").versionRef(ksp)
plugin("ksp", "com.google.devtools.ksp").versionRef(ksp)
}