Skip to content

Commit

Permalink
Spigot: Fix adventure dependencies
Browse files Browse the repository at this point in the history
As it turns out, the bungee serializer requires the json and gson serializers to work, this is what was causing the jar to go up ~100KB in size, not the adventure api itself being shaded. MCUtils-Spigot now works and is intended to be used as a plugin instead of being shaded due to its size, though it can still be shaded into your jar file if you don't mind the extra file size.
  • Loading branch information
xDec0de committed Nov 4, 2024
1 parent 55178d9 commit f1b8637
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions platforms/spigot/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,8 @@ repositories {
dependencies {
api(project(":shared"))
compileOnly(libs.spigot)
// Here we add adventure-api as an implementation and set transitive to false on
// the serializers. Why? Well, because they include adventure-api as an api, meaning
// that minimize doesn't take effect, so here we are basically forcing minimize to work.
implementation(libs.adventure.api)
implementation(libs.adventure.serializer.legacy) {
setTransitive(false)
}
implementation(libs.adventure.serializer.bungee) {
setTransitive(false)
}
implementation(libs.adventure.serializer.legacy)
implementation(libs.adventure.serializer.bungee)
}

tasks {
Expand Down

0 comments on commit f1b8637

Please sign in to comment.