forked from lavalink-devs/Lavalink
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
85 lines (64 loc) · 3.56 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
rootProject.name = "Lavalink-Parent"
include(":Lavalink-Server")
include(":protocol")
include(":Testbot")
include(":plugin-api")
include("plugin-api")
project(":Lavalink-Server").projectDir = file("$rootDir/LavalinkServer")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
spring()
voice()
metrics()
common()
other()
}
}
}
fun VersionCatalogBuilder.spring() {
version("spring-boot", "3.1.0")
library("spring-websocket", "org.springframework", "spring-websocket").version("6.0.9")
library("spring-boot", "org.springframework.boot", "spring-boot").versionRef("spring-boot")
library("spring-boot-web", "org.springframework.boot", "spring-boot-starter-web").versionRef("spring-boot")
library("spring-boot-undertow", "org.springframework.boot", "spring-boot-starter-undertow") .versionRef("spring-boot")
library("spring-boot-test", "org.springframework.boot", "spring-boot-starter-test") .versionRef("spring-boot")
bundle("spring", listOf("spring-websocket", "spring-boot-web", "spring-boot-undertow"))
}
fun VersionCatalogBuilder.voice() {
version("lavaplayer", "17c75f5")
library("lavaplayer", "com.github.walkyst.lavaplayer-fork", "lavaplayer").versionRef("lavaplayer")
library("lavaplayer-ip-rotator", "com.github.walkyst.lavaplayer-fork", "lavaplayer-ext-youtube-rotator").versionRef("lavaplayer")
library("lavadsp", "dev.arbjerg", "lavadsp").version("0.7.8")
library("koe", "moe.kyokobot.koe", "core").version("2.0.0-rc1")
library("koe-udpqueue", "moe.kyokobot.koe", "ext-udpqueue").version("2.0.0-rc1")
version("udpqueue", "0.2.6")
val platforms = listOf("linux-x86-64", "linux-x86", "linux-aarch64", "linux-arm", "win-x86-64", "win-x86", "darwin")
platforms.forEach {
library("udpqueue-native-$it", "club.minnced", "udpqueue-native-$it").versionRef("udpqueue")
}
bundle("udpqueue-natives", platforms.map { "udpqueue-native-$it" })
}
fun VersionCatalogBuilder.metrics() {
version("prometheus", "0.16.0")
library("metrics", "io.prometheus", "simpleclient").versionRef("prometheus")
library("metrics-hotspot", "io.prometheus", "simpleclient_hotspot").versionRef("prometheus")
library("metrics-logback", "io.prometheus", "simpleclient_logback").versionRef("prometheus")
library("metrics-servlet", "io.prometheus", "simpleclient_servlet").versionRef("prometheus")
bundle("metrics", listOf("metrics", "metrics-hotspot", "metrics-logback", "metrics-servlet"))
}
fun VersionCatalogBuilder.common() {
version("kotlin", "1.8.22")
library("kotlin-reflect", "org.jetbrains.kotlin", "kotlin-reflect").versionRef("kotlin")
library("kotlin-stdlib-jdk8", "org.jetbrains.kotlin", "kotlin-stdlib-jdk8").versionRef("kotlin")
library("kotlinx-serialization-json", "org.jetbrains.kotlinx", "kotlinx-serialization-json").version("1.5.1")
library("kotlinx-datetime", "org.jetbrains.kotlinx", "kotlinx-datetime").version("0.4.0")
library("logback", "ch.qos.logback", "logback-classic").version("1.4.7")
library("sentry-logback", "io.sentry", "sentry-logback").version("6.22.0")
library("oshi", "com.github.oshi", "oshi-core").version("6.4.3")
}
fun VersionCatalogBuilder.other() {
library("jda", "net.dv8tion", "JDA").version("4.1.1_135")
library("lavalink-client", "com.github.FredBoat", "Lavalink-Client").version("8d9b660")
}