Commit 7b818b0
committed
Fix SLF4J binding so JDA logs route through Bukkit logger
JDA 5.x pulls slf4j-api 2.0.x, but the binding was slf4j-simple 1.7.36
declared as 'provided' (so not even shaded). Result: SLF4J 2.0 could
not discover a provider (1.7.x uses a static binder, not ServiceLoader)
and fell back to NOP, while JDA's bootstrap warnings dumped to stderr
and tripped Paper's System.out/err nag.
- Replace slf4j-simple 1.7.36 (provided) with slf4j-jdk14 2.0.13
(compile). Routes JDA logs through java.util.logging, which Paper
captures as normal plugin lines - no stderr, no nag.
- Add ServicesResourceTransformer so the relocated JULServiceProvider
service file matches its relocated interface path. Without it the
service file content points at a non-relocated class and the binding
silently fails again.
Verified at runtime: ServiceLoader finds JULServiceProvider and
LoggerFactory produces a JDK14LoggerAdapter.1 parent f5727a6 commit 7b818b0
1 file changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
109 | 118 | | |
110 | 119 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
114 | 124 | | |
115 | 125 | | |
116 | 126 | | |
| |||
222 | 232 | | |
223 | 233 | | |
224 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
225 | 243 | | |
226 | 244 | | |
227 | 245 | | |
| |||
0 commit comments