Skip to content

Commit

Permalink
build: update lavaplayer and add new youtube source plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Apehum committed May 13, 2024
1 parent 3a19d4d commit fcddc61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ repositories {
maven("https://jitpack.io/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://maven.lavalink.dev/snapshots")
maven("https://maven.lavalink.dev/releases")
}

dependencies {
Expand All @@ -29,6 +30,9 @@ dependencies {
compileOnly(libs.pv.server)
compileOnly(libs.pv.proxy)

compileOnly(libs.lavaplayer.youtube)
shadow(libs.lavaplayer.youtube)

compileOnly(libs.lavaplayer)
shadow(libs.lavaplayer) {
exclude("org.slf4j")
Expand Down Expand Up @@ -58,6 +62,12 @@ tasks {
relocate("net.sourceforge", "su.plo.voice.lavaplayer.libs.net.sourceforge")
relocate("org.json", "su.plo.voice.lavaplayer.libs.org.json")
// relocate("org.mozilla", "su.plo.voice.lavaplayer.libs.org.mozilla")

relocate("dev.lavalink", "su.plo.voice.lavaplayer.libs.dev.lavalink")
relocate("com.grack", "su.plo.voice.lavaplayer.libs.com.grack")

exclude("lavalink-plugins/**")

relocate("com.sedmelluq", "su.plo.voice.lavaplayer.libs.com.sedmelluq") {
exclude("com/sedmelluq/discord/lavaplayer/natives/**")
}
Expand Down
4 changes: 3 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ kotlin = "1.8.22"

pv = "2.1.0-SNAPSHOT"

lavaplayer = "0eaeee195f0315b2617587aa3537fa202df07ddc-SNAPSHOT"
lavaplayer = "1.5.4"
lavaplayer-youtube-source = "1.2.0"

pv-gradle-plugin = "1.0.2-SNAPSHOT"
shadow = "7.0.0"
Expand All @@ -14,6 +15,7 @@ pv-server = { module = "su.plo.voice.api:server", version.ref = "pv" }
pv-proxy = { module = "su.plo.voice.api:proxy", version.ref = "pv" }

lavaplayer = { module = "dev.arbjerg:lavaplayer", version.ref = "lavaplayer" }
lavaplayer-youtube = { module = "dev.lavalink.youtube:youtube-plugin", version.ref = "lavaplayer-youtube-source" }

[plugins]
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
Expand Down

0 comments on commit fcddc61

Please sign in to comment.