Files
Carbon/velocity/build.gradle.kts
T
Jason Penilla 6dac94252c 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
2023-06-28 15:05:34 -07:00

61 lines
1.4 KiB
Kotlin

import java.util.Locale
plugins {
id("carbon.shadow-platform")
id("net.kyori.blossom")
id("xyz.jpenilla.run-velocity")
}
dependencies {
implementation(projects.carbonchatCommon)
compileOnly(libs.velocityApi)
annotationProcessor(libs.velocityApi)
implementation(libs.cloudVelocity)
compileOnly(libs.miniplaceholders)
runtimeOnly(libs.postgresql)
runtimeOnly(libs.mysql)
runtimeOnly(libs.zstdjni)
}
tasks {
shadowJar {
dependencies {
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"))
exclude(dependency("javax.inject:javax.inject"))
}
}
runVelocity {
velocityVersion(libs.versions.velocityApi.get())
}
}
blossom {
mapOf(
"ID" to rootProject.name.lowercase(Locale.ROOT),
"NAME" to rootProject.name,
"VERSION" to version,
"DESCRIPTION" to description,
"URL" to GITHUB_REPO_URL
).forEach { (k, v) ->
replaceToken("$[$k]", v)
}
}
modrinth {
optional.project("unsignedvelocity")
}