Refactor and remove manual parsing

This commit is contained in:
2026-02-15 18:28:03 +01:00
parent f6a28fe131
commit 7c6e96b1a2
6 changed files with 93 additions and 139 deletions

View File

@@ -1,35 +1,21 @@
plugins {
kotlin("jvm") version "1.8.22"
`java-library`
alias(libs.plugins.lavalink)
}
group = "dev.jellylink"
version = "0.1.0"
repositories {
// Lavalink / Lavaplayer artifacts
maven("https://maven.lavalink.dev/releases")
mavenCentral()
}
dependencies {
// Lavalink plugin API (adjust version to match your Lavalink server)
compileOnly("dev.arbjerg.lavalink:plugin-api:4.0.8")
// Lavaplayer (provided by Lavalink at runtime; keep as compileOnly)
compileOnly("dev.arbjerg:lavaplayer:2.2.2")
// Spring annotations (provided by Lavalink, but needed for compilation)
compileOnly("org.springframework.boot:spring-boot-starter-web:3.1.0")
// JSON types used by the plugin API
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
lavalinkPlugin {
name = "jellylink-jellyfin"
path = "dev.jellylink"
apiVersion = libs.versions.lavalink.api
serverVersion = libs.versions.lavalink.server
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion = JavaLanguageVersion.of(17)
}
}