stargate-common declared HikariCP/SQLite/MySQL as implementation deps, which leaked transitively into stargate-velocity and stargate-bungee even though neither touches storage. That bloated each proxy jar from ~15KB to ~18MB for nothing. Switched to compileOnly in stargate-common; stargate-paper already redeclares them as implementation so its shaded jar is unaffected.
11 lines
606 B
Kotlin
11 lines
606 B
Kotlin
dependencies {
|
|
// compileOnly, not implementation: these are only needed to compile SqlGateStorage here.
|
|
// Actually bundling them for runtime is the paper module's job (it redeclares them as
|
|
// implementation) - stargate-velocity/stargate-bungee depend on this module too but never
|
|
// touch storage, so leaking these as transitive implementation deps would bloat their
|
|
// shaded jars with an unused JDBC/HikariCP stack for no reason.
|
|
compileOnly("com.zaxxer:HikariCP:5.1.0")
|
|
compileOnly("org.xerial:sqlite-jdbc:3.46.1.3")
|
|
compileOnly("com.mysql:mysql-connector-j:8.4.0")
|
|
}
|