Update dependencies and improve configuration management
- Updated LoLib dependency to version 3.0.0 in build.gradle.kts - Added HikariCP and MySQL connector dependencies for improved database handling - Enhanced jar minimization process to exclude JDBC pool and driver - Refactored configuration management by introducing ConfigAccessor and ConfigLoader for better file handling and validation - Removed deprecated GenerationOptions class and integrated its functionality into the new structure - Improved command error handling and added cooldown hints for admin commands
This commit is contained in:
parent
978f739045
commit
3100c53229
86 changed files with 4324 additions and 3248 deletions
|
|
@ -77,12 +77,14 @@ dependencies {
|
|||
compileOnly("net.kyori:adventure-text-minimessage:4.14.0")
|
||||
|
||||
// LoLib Core
|
||||
implementation(files("libs/lolib-2.0.1.jar"))
|
||||
implementation(files("libs/lolib-3.0.0.jar"))
|
||||
|
||||
// Shaded dependencies
|
||||
implementation("io.papermc:paperlib:1.0.7")
|
||||
implementation("com.google.code.gson:gson:2.10.1")
|
||||
implementation("org.bstats:bstats-bukkit:3.2.1")
|
||||
implementation("com.zaxxer:HikariCP:5.1.0")
|
||||
implementation("com.mysql:mysql-connector-j:8.3.0")
|
||||
|
||||
// Provided dependencies (plugins)
|
||||
compileOnly("me.clip:placeholderapi:2.11.6")
|
||||
|
|
@ -110,9 +112,12 @@ tasks.shadowJar {
|
|||
relocate("io.papermc.lib", "dev.loki.loparkour.lib.paperlib")
|
||||
relocate("com.google.gson", "dev.loki.loparkour.lib.gson")
|
||||
relocate("org.bstats", "dev.loki.loparkour.lib.bstats")
|
||||
|
||||
// Minimize jar size
|
||||
minimize()
|
||||
|
||||
// Minimize jar size (keep JDBC pool + driver intact)
|
||||
minimize {
|
||||
exclude(dependency("com.zaxxer:HikariCP:.*"))
|
||||
exclude(dependency("com.mysql:mysql-connector-j:.*"))
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named("build") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue