forked from lavalink-devs/Lavalink
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle.kts
87 lines (65 loc) · 3.63 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
rootProject.name = "Lavalink-Parent"
include(":Lavalink-Server")
include(":Testbot")
include(":plugin-api")
include("plugin-api")
project(":Lavalink-Server").projectDir = file("$rootDir/LavalinkServer")
enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
spring()
voice()
metrics()
common()
other()
}
}
}
fun VersionCatalogBuilder.spring() {
version("spring-boot", "2.6.6")
library("spring-websocket", "org.springframework", "spring-websocket").version("5.3.17")
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", "1.3.99.1")
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", "com.github.natanbc", "lavadsp").version("0.7.7")
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.5")
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.5.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.3.61")
library("kotlin-reflect", "org.jetbrains.kotlin", "kotlin-reflect").versionRef("kotlin")
library("kotlin-stdlib-jdk8", "org.jetbrains.kotlin", "kotlin-stdlib-jdk8").versionRef("kotlin")
library("logback", "ch.qos.logback", "logback-classic").version("1.2.3")
library("sentry-logback", "io.sentry", "sentry-logback").version("1.7.2")
library("oshi", "com.github.oshi", "oshi-core").version("5.7.4")
library("json", "org.json", "json").version("20180813")
library("gson", "com.google.code.gson", "gson").version("2.8.5")
library("spotbugs", "com.github.spotbugs", "spotbugs-annotations").version("3.1.6")
}
fun VersionCatalogBuilder.other() {
library("jda", "net.dv8tion", "JDA").version("4.1.1_135")
library("lavalink-client", "com.github.FredBoat", "Lavalink-Client").version("8d9b660")
}