mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 22:16:22 +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("com.google.thirdparty.publicsuffix")
|
||||||
relocateDependency("org.jdbi")
|
relocateDependency("org.jdbi")
|
||||||
relocateDependency("com.github.benmanes")
|
relocateDependency("com.github.benmanes")
|
||||||
relocateDependency("org.mariadb.jdbc")
|
|
||||||
relocateDependency("com.zaxxer.hikari")
|
relocateDependency("com.zaxxer.hikari")
|
||||||
relocateDependency("org.postgresql")
|
|
||||||
relocateDependency("redis.clients.jedis")
|
relocateDependency("redis.clients.jedis")
|
||||||
relocateDependency("ninja.egg82.messenger")
|
relocateDependency("ninja.egg82.messenger")
|
||||||
relocateDependency("org.antlr")
|
relocateDependency("org.antlr")
|
||||||
|
|||||||
@@ -33,9 +33,7 @@ dependencies {
|
|||||||
api(libs.hikariCP)
|
api(libs.hikariCP)
|
||||||
api(libs.flyway)
|
api(libs.flyway)
|
||||||
api(libs.flywayMysql)
|
api(libs.flywayMysql)
|
||||||
api(libs.postgresql)
|
|
||||||
api(libs.caffeine)
|
api(libs.caffeine)
|
||||||
api(libs.mariadb)
|
|
||||||
|
|
||||||
// Messaging
|
// Messaging
|
||||||
api(libs.messenger)
|
api(libs.messenger)
|
||||||
@@ -43,7 +41,6 @@ dependencies {
|
|||||||
api(libs.messengerRabbitmq)
|
api(libs.messengerRabbitmq)
|
||||||
api(libs.messengerRedis)
|
api(libs.messengerRedis)
|
||||||
api(libs.netty)
|
api(libs.netty)
|
||||||
compileOnlyApi(libs.zstdjni)
|
|
||||||
api(libs.jedis)
|
api(libs.jedis)
|
||||||
api(libs.rabbitmq)
|
api(libs.rabbitmq)
|
||||||
api(libs.nats)
|
api(libs.nats)
|
||||||
|
|||||||
@@ -36,6 +36,15 @@ dependencies {
|
|||||||
include(libs.adventurePlatformFabric)
|
include(libs.adventurePlatformFabric)
|
||||||
|
|
||||||
modImplementation(libs.miniplaceholders)
|
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 {
|
carbonPlatform {
|
||||||
|
|||||||
@@ -45,15 +45,15 @@ versions:
|
|||||||
miniplaceholders: 2.2.0
|
miniplaceholders: 2.2.0
|
||||||
jdbi: 3.34.0
|
jdbi: 3.34.0
|
||||||
hikari: 5.0.1
|
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.
|
flyway: 8.5.13 # DO NOT UPDATE. Something will break.
|
||||||
caffeine: 3.0.5
|
caffeine: 3.0.5
|
||||||
mariadb: 3.0.8
|
|
||||||
messenger: 1.0.0-SNAPSHOT
|
messenger: 1.0.0-SNAPSHOT
|
||||||
netty: 4.1.68.Final
|
netty: 4.1.68.Final
|
||||||
zstdjni: 1.5.1-1
|
zstdjni: 1.5.1-1
|
||||||
jedis: 3.7.0
|
jedis: 3.7.0
|
||||||
postgresql: 42.3.1
|
postgresql: 42.6.0
|
||||||
rabbitmq: 5.13.1
|
rabbitmq: 5.13.1
|
||||||
nats: 2.12.0
|
nats: 2.12.0
|
||||||
pluginYml: 0.5.3
|
pluginYml: 0.5.3
|
||||||
@@ -226,6 +226,10 @@ dependencies:
|
|||||||
group: com.mysql
|
group: com.mysql
|
||||||
name: mysql-connector-j
|
name: mysql-connector-j
|
||||||
version: { ref: mysql }
|
version: { ref: mysql }
|
||||||
|
protobuf:
|
||||||
|
group: com.google.protobuf
|
||||||
|
name: protobuf-java
|
||||||
|
version: { ref: protobuf }
|
||||||
postgresql:
|
postgresql:
|
||||||
group: org.postgresql
|
group: org.postgresql
|
||||||
name: postgresql
|
name: postgresql
|
||||||
@@ -234,10 +238,6 @@ dependencies:
|
|||||||
group: com.github.ben-manes.caffeine
|
group: com.github.ben-manes.caffeine
|
||||||
name: caffeine
|
name: caffeine
|
||||||
version: { ref: caffeine }
|
version: { ref: caffeine }
|
||||||
mariadb:
|
|
||||||
group: org.mariadb.jdbc
|
|
||||||
name: mariadb-java-client
|
|
||||||
version: { ref: mariadb }
|
|
||||||
|
|
||||||
messenger:
|
messenger:
|
||||||
group: ninja.egg82
|
group: ninja.egg82
|
||||||
|
|||||||
@@ -14,6 +14,10 @@ dependencies {
|
|||||||
|
|
||||||
implementation(libs.cloudVelocity)
|
implementation(libs.cloudVelocity)
|
||||||
compileOnly(libs.miniplaceholders)
|
compileOnly(libs.miniplaceholders)
|
||||||
|
|
||||||
|
runtimeOnly(libs.postgresql)
|
||||||
|
runtimeOnly(libs.mysql)
|
||||||
|
runtimeOnly(libs.zstdjni)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@@ -22,6 +26,12 @@ tasks {
|
|||||||
relocateDependency("io.leangen.geantyref")
|
relocateDependency("io.leangen.geantyref")
|
||||||
relocateDependency("com.google.inject.assistedinject")
|
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
|
// included in velocity
|
||||||
exclude(dependency("com.google.inject:guice"))
|
exclude(dependency("com.google.inject:guice"))
|
||||||
exclude(dependency("aopalliance:aopalliance"))
|
exclude(dependency("aopalliance:aopalliance"))
|
||||||
|
|||||||
Reference in new issue
Block a user