mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Dependency fixes
- Removes mariadb sql driver - psql drivers, mysql drivers, and zstd-jni will now be present on all platforms through one of - driver provided by platform - driver included/shaded in carbon jar - driver downloaded at runtime
This commit is contained in:
5 files changed
+26
-12
No files matched your search
@@ -29,9 +29,7 @@ fun ShadowJar.standardRelocations() {
|
||||
relocateDependency("com.google.thirdparty.publicsuffix")
|
||||
relocateDependency("org.jdbi")
|
||||
relocateDependency("com.github.benmanes")
|
||||
relocateDependency("org.mariadb.jdbc")
|
||||
relocateDependency("com.zaxxer.hikari")
|
||||
relocateDependency("org.postgresql")
|
||||
relocateDependency("redis.clients.jedis")
|
||||
relocateDependency("ninja.egg82.messenger")
|
||||
relocateDependency("org.antlr")
|
||||
|
||||
@@ -33,9 +33,7 @@ dependencies {
|
||||
api(libs.hikariCP)
|
||||
api(libs.flyway)
|
||||
api(libs.flywayMysql)
|
||||
api(libs.postgresql)
|
||||
api(libs.caffeine)
|
||||
api(libs.mariadb)
|
||||
|
||||
// Messaging
|
||||
api(libs.messenger)
|
||||
@@ -43,7 +41,6 @@ dependencies {
|
||||
api(libs.messengerRabbitmq)
|
||||
api(libs.messengerRedis)
|
||||
api(libs.netty)
|
||||
compileOnlyApi(libs.zstdjni)
|
||||
api(libs.jedis)
|
||||
api(libs.rabbitmq)
|
||||
api(libs.nats)
|
||||
|
||||
@@ -36,6 +36,15 @@ dependencies {
|
||||
include(libs.adventurePlatformFabric)
|
||||
|
||||
modImplementation(libs.miniplaceholders)
|
||||
|
||||
include(libs.postgresql)
|
||||
runtimeOnly(libs.postgresql)
|
||||
include(libs.mysql)
|
||||
runtimeOnly(libs.mysql)
|
||||
include(libs.protobuf)
|
||||
runtimeOnly(libs.protobuf)
|
||||
include(libs.zstdjni)
|
||||
runtimeOnly(libs.zstdjni)
|
||||
}
|
||||
|
||||
carbonPlatform {
|
||||
|
||||
@@ -45,15 +45,15 @@ versions:
|
||||
miniplaceholders: 2.2.0
|
||||
jdbi: 3.34.0
|
||||
hikari: 5.0.1
|
||||
mysql: 8.0.31
|
||||
mysql: 8.0.33
|
||||
protobuf: 3.21.9
|
||||
flyway: 8.5.13 # DO NOT UPDATE. Something will break.
|
||||
caffeine: 3.0.5
|
||||
mariadb: 3.0.8
|
||||
messenger: 1.0.0-SNAPSHOT
|
||||
netty: 4.1.68.Final
|
||||
zstdjni: 1.5.1-1
|
||||
jedis: 3.7.0
|
||||
postgresql: 42.3.1
|
||||
postgresql: 42.6.0
|
||||
rabbitmq: 5.13.1
|
||||
nats: 2.12.0
|
||||
pluginYml: 0.5.3
|
||||
@@ -226,6 +226,10 @@ dependencies:
|
||||
group: com.mysql
|
||||
name: mysql-connector-j
|
||||
version: { ref: mysql }
|
||||
protobuf:
|
||||
group: com.google.protobuf
|
||||
name: protobuf-java
|
||||
version: { ref: protobuf }
|
||||
postgresql:
|
||||
group: org.postgresql
|
||||
name: postgresql
|
||||
@@ -234,10 +238,6 @@ dependencies:
|
||||
group: com.github.ben-manes.caffeine
|
||||
name: caffeine
|
||||
version: { ref: caffeine }
|
||||
mariadb:
|
||||
group: org.mariadb.jdbc
|
||||
name: mariadb-java-client
|
||||
version: { ref: mariadb }
|
||||
|
||||
messenger:
|
||||
group: ninja.egg82
|
||||
|
||||
@@ -14,6 +14,10 @@ dependencies {
|
||||
|
||||
implementation(libs.cloudVelocity)
|
||||
compileOnly(libs.miniplaceholders)
|
||||
|
||||
runtimeOnly(libs.postgresql)
|
||||
runtimeOnly(libs.mysql)
|
||||
runtimeOnly(libs.zstdjni)
|
||||
}
|
||||
|
||||
tasks {
|
||||
@@ -22,6 +26,12 @@ tasks {
|
||||
relocateDependency("io.leangen.geantyref")
|
||||
relocateDependency("com.google.inject.assistedinject")
|
||||
|
||||
relocateDependency("org.postgresql")
|
||||
relocateDependency("com.github.luben.zstd")
|
||||
relocateDependency("com.google.protobuf")
|
||||
relocateDependency("com.mysql.cj")
|
||||
relocateDependency("com.mysql.jdbc")
|
||||
|
||||
// included in velocity
|
||||
exclude(dependency("com.google.inject:guice"))
|
||||
exclude(dependency("aopalliance:aopalliance"))
|
||||
|
||||
Reference in new issue
Block a user