Fix critical bugs and Caffeine ClassNotFoundException
- Disabled minimize in shadowJar (was removing Caffeine's dynamic classes) - Fixed Score.fromString() ArrayIndexOutOfBoundsException - Fixed Leaderboard DIFFICULTY sort NumberFormatException - Fixed PAPIHook parsing errors (difficulty, score_until, rank) - Fixed HoloHook parsing errors (rank, difficulty) - Added proper error handling for all Integer/Double.parseX() calls
This commit is contained in:
parent
5526910bef
commit
e5dd567ca9
5 changed files with 78 additions and 27 deletions
|
|
@ -113,11 +113,12 @@ tasks.shadowJar {
|
|||
relocate("com.google.gson", "dev.loki.loparkour.lib.gson")
|
||||
relocate("org.bstats", "dev.loki.loparkour.lib.bstats")
|
||||
|
||||
// Minimize jar size (keep JDBC pool + driver intact)
|
||||
minimize {
|
||||
exclude(dependency("com.zaxxer:HikariCP:.*"))
|
||||
exclude(dependency("com.mysql:mysql-connector-j:.*"))
|
||||
}
|
||||
// Don't minimize - causes issues with Caffeine's dynamically generated classes
|
||||
// minimize {
|
||||
// exclude(dependency("com.zaxxer:HikariCP:.*"))
|
||||
// exclude(dependency("com.mysql:mysql-connector-j:.*"))
|
||||
// exclude(dependency(files("libs/lolib-3.0.0.jar")))
|
||||
// }
|
||||
}
|
||||
|
||||
tasks.named("build") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue