Skip to content

Commit

Permalink
Remove adventure, use serializers only
Browse files Browse the repository at this point in the history
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
  • Loading branch information
xDec0de committed Nov 3, 2024
1 parent 3f8077f commit 974baf1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions libs.versions.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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" }

Expand Down
1 change: 0 additions & 1 deletion platforms/universal/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ repositories {

dependencies {
api(project(":shared"))
api(libs.adventure)
api(libs.adventure.serializer.legacy)
api(libs.snakeyaml)
}
1 change: 0 additions & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ plugins {

dependencies {
implementation(libs.jetbrains.annotations)
compileOnly(libs.adventure)
compileOnly(libs.adventure.serializer.legacy)
compileOnly(libs.snakeyaml)
}

0 comments on commit 974baf1

Please sign in to comment.