Files
Carbon/velocity/build.gradle.kts
T

58 lines
1.3 KiB
Kotlin

plugins {
id("carbon.shadow-platform")
alias(libs.plugins.runVelocity)
}
dependencies {
implementation(projects.carbonchatCommon)
implementation(libs.bstatsVelocity)
compileOnly(libs.velocityApi)
implementation(libs.cloudVelocity)
compileOnly(libs.miniplaceholders)
runtimeDownload(libs.mysql)
}
gremlin {
defaultJarRelocatorDependencies.set(true)
}
tasks {
shadowJar {
relocateCloud()
standardRuntimeRelocations()
relocateDependency("com.google.inject.assistedinject")
relocateDependency("io.leangen.geantyref")
}
writeDependencies {
standardRuntimeRelocations()
relocateDependency("com.google.inject.assistedinject")
relocateDependency("io.leangen.geantyref")
}
runVelocity {
velocityVersion(libs.versions.velocityApi.get())
downloadPlugins {
url("https://download.luckperms.net/1515/velocity/LuckPerms-Velocity-5.4.102.jar")
}
}
processResources {
replace("velocity-plugin.json", mapOf(
"id" to rootProject.name.lowercase(),
"name" to rootProject.name,
"version" to project.version,
"description" to project.description,
"url" to GITHUB_REPO_URL
))
}
}
modrinth {
optional.project("unsignedvelocity")
}
configurations.runtimeDownload {
exclude("org.checkerframework", "checker-qual")
}