From 974baf1818303afe2db3cd6bc06dc226022cafc0 Mon Sep 17 00:00:00 2001 From: xDec0de_ Date: Sun, 3 Nov 2024 18:01:50 +0100 Subject: [PATCH] Remove adventure, use serializers only This doesn't help with jar size at all, as adventure serializers add the hole adventure api as api (Gradle) for some reason :D I'm about to make my own serializer directly to Minecraft JSON at this point --- libs.versions.toml | 5 ++--- platforms/universal/build.gradle.kts | 1 - shared/build.gradle.kts | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libs.versions.toml b/libs.versions.toml index c38f98f..223fa03 100644 --- a/libs.versions.toml +++ b/libs.versions.toml @@ -1,7 +1,7 @@ [versions] jetbrains-annotations = "24.0.0" snakeyaml = "2.3" -adventure = "4.17.0" +adventure-serializer-legacy = "4.17.0" adventure-serializer-bungee = "4.3.4" spigot = "1.20-R0.1-SNAPSHOT" velocity = "3.3.0-SNAPSHOT" @@ -10,9 +10,8 @@ run-paper = "2.3.0" [libraries] jetbrains-annotations = { group = "org.jetbrains", name = "annotations", version.ref = "jetbrains-annotations" } snakeyaml = { group = "org.yaml", name = "snakeyaml", version.ref = "snakeyaml" } -adventure = { group = "net.kyori", name = "adventure-api", version.ref = "adventure" } +adventure-serializer-legacy = { group = "net.kyori", name = "adventure-text-serializer-legacy", version.ref = "adventure-serializer-legacy" } adventure-serializer-bungee = { group = "net.kyori", name = "adventure-text-serializer-bungeecord", version.ref = "adventure-serializer-bungee" } -adventure-serializer-legacy = { group = "net.kyori", name = "adventure-text-serializer-legacy", version.ref = "adventure" } spigot = { module = "org.spigotmc:spigot-api", version.ref = "spigot" } velocity = { module = "com.velocitypowered:velocity-api", version.ref = "velocity" } diff --git a/platforms/universal/build.gradle.kts b/platforms/universal/build.gradle.kts index 4e64afc..d2ab3fc 100644 --- a/platforms/universal/build.gradle.kts +++ b/platforms/universal/build.gradle.kts @@ -9,7 +9,6 @@ repositories { dependencies { api(project(":shared")) - api(libs.adventure) api(libs.adventure.serializer.legacy) api(libs.snakeyaml) } diff --git a/shared/build.gradle.kts b/shared/build.gradle.kts index 2897841..55e1525 100644 --- a/shared/build.gradle.kts +++ b/shared/build.gradle.kts @@ -5,7 +5,6 @@ plugins { dependencies { implementation(libs.jetbrains.annotations) - compileOnly(libs.adventure) compileOnly(libs.adventure.serializer.legacy) compileOnly(libs.snakeyaml) }