Skip to content

Commit

Permalink
update lavaplayer to 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Feb 1, 2025
1 parent 47a3bf2 commit 71428a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ import org.apache.http.HttpHost
import org.apache.http.auth.AuthScope
import org.apache.http.auth.UsernamePasswordCredentials
import org.apache.http.client.CredentialsProvider
import org.apache.http.client.config.CookieSpecs
import org.apache.http.client.config.RequestConfig
import org.apache.http.impl.client.BasicCredentialsProvider
import org.slf4j.LoggerFactory
import org.springframework.context.annotation.Bean
Expand Down Expand Up @@ -54,23 +52,7 @@ class AudioPlayerConfiguration {
mediaContainerProbes: Collection<MediaContainerProbe>
): AudioPlayerManager {
serverConfig.timeouts?.let {
HttpClientTools.setDefaultRequestConfig(
RequestConfig.custom()
.setConnectTimeout(it.connectTimeoutMs)
.setConnectionRequestTimeout(it.connectionRequestTimeoutMs)
.setSocketTimeout(it.socketTimeoutMs)
.setCookieSpec(CookieSpecs.STANDARD)
.build()
)

HttpClientTools.setNoCookiesRequestConfig(
RequestConfig.custom()
.setConnectTimeout(it.connectTimeoutMs)
.setConnectionRequestTimeout(it.connectionRequestTimeoutMs)
.setSocketTimeout(it.socketTimeoutMs)
.setCookieSpec(CookieSpecs.IGNORE_COOKIES)
.build()
)
HttpClientTools.setDefaultRequestTimeout(it.connectTimeoutMs, it.connectionRequestTimeoutMs, it.socketTimeoutMs)
}

val audioPlayerManager = DefaultAudioPlayerManager()
Expand Down
26 changes: 13 additions & 13 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,23 @@ fun VersionCatalogBuilder.spring() {

library("spring-websocket", "org.springframework", "spring-websocket").version("6.1.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")
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", "a099a98b55e33c1694b2e2636ecd1c3a33769707-SNAPSHOT")
version("lavaplayer", "2.2.3")
version("koe", "2.0.3-rc2")

library("lavaplayer", "dev.arbjerg", "lavaplayer").versionRef("lavaplayer")
library("lavaplayer", "dev.arbjerg", "lavaplayer").versionRef("lavaplayer")
library("lavaplayer-ip-rotator", "dev.arbjerg", "lavaplayer-ext-youtube-rotator").versionRef("lavaplayer")
library("lavadsp", "dev.arbjerg", "lavadsp").version("0.7.8")
library("lavadsp", "dev.arbjerg", "lavadsp").version("0.7.8")

library("koe", "moe.kyokobot.koe", "core").versionRef("koe")
library("koe", "moe.kyokobot.koe", "core").versionRef("koe")
library("koe-udpqueue", "moe.kyokobot.koe", "ext-udpqueue").versionRef("koe")

version("udpqueue", "0.2.7")
Expand All @@ -56,7 +56,7 @@ fun VersionCatalogBuilder.voice() {
fun VersionCatalogBuilder.metrics() {
version("prometheus", "0.16.0")

library("metrics", "io.prometheus", "simpleclient").versionRef("prometheus")
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")
Expand All @@ -67,7 +67,7 @@ fun VersionCatalogBuilder.metrics() {
fun VersionCatalogBuilder.common() {
version("kotlin", "2.0.0")

library("kotlin-reflect", "org.jetbrains.kotlin", "kotlin-reflect").versionRef("kotlin")
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.7.0")
Expand All @@ -76,9 +76,9 @@ fun VersionCatalogBuilder.common() {
library("xmlutil-jdk", "io.github.pdvrieze.xmlutil", "core-jdk").version("0.90.3")
library("xmlutil-serialization", "io.github.pdvrieze.xmlutil", "serialization-jvm").version("0.90.3")

library("logback", "ch.qos.logback", "logback-classic").version("1.5.6")
library("sentry-logback", "io.sentry", "sentry-logback").version("7.10.0")
library("oshi", "com.github.oshi", "oshi-core").version("6.4.11")
library("logback", "ch.qos.logback", "logback-classic").version("1.5.6")
library("sentry-logback", "io.sentry", "sentry-logback").version("7.10.0")
library("oshi", "com.github.oshi", "oshi-core").version("6.4.11")
}

fun VersionCatalogBuilder.other() {
Expand Down

0 comments on commit 71428a1

Please sign in to comment.