Skip to content

Commit

Permalink
fix(spigot): missing jansi library for terminal translation
Browse files Browse the repository at this point in the history
Paper 1.21.3+ has removed jansi from the included dependencies,
therefore it has to be shaded with Triton now.

Fixes #464
  • Loading branch information
diogotcorreia committed Jan 21, 2025
1 parent c8a6a1c commit 1af79d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ shadowJar {
relocate 'net.kyori.adventure.text.minimessage', 'com.rexcantor64.shaded.minimessage'
relocate 'com.tananaev.jsonpatch', 'com.rexcantor64.shaded.jsonpatch'
relocate 'com.zaxxer.hikari', 'com.rexcantor64.shaded.hikari'
relocate 'org.fusesource.jansi', 'com.rexcantor64.shaded.jansi'
}
3 changes: 3 additions & 0 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ dependencies {
exclude group: 'net.kyori', module: 'adventure-text-serialize-plain'
}

// Paper 1.21.3+ does not have this anymore, so shade and relocate it
implementation 'org.fusesource.jansi:jansi:2.4.0'

compileOnly 'me.clip:placeholderapi:2.11.6'
compileOnly 'org.apache.logging.log4j:log4j-core:2.17.1'
implementation 'org.slf4j:slf4j-nop:1.7.36'
Expand Down

0 comments on commit 1af79d9

Please sign in to comment.