mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
* feat: cloud v2 * updates * ArgumentFactory -> ParserFactory * Use parsing context instead of context hack for player parser input * fix: Allow console to clearchat * revert behavior change to player suggestions * Fixup command/argument description issues * remove unused method * paper: remove redundant command manager config * fix cloud relocation * remove redundant method call * Update cloud * thenCompose -> thenApply in CarbonPlayerParser * bump luckperms * adjust exception handling --------- Co-authored-by: Alexander Söderberg <[email protected]>
62 lines
1.5 KiB
Kotlin
62 lines
1.5 KiB
Kotlin
plugins {
|
|
id("carbon.shadow-platform")
|
|
id("xyz.jpenilla.run-velocity")
|
|
}
|
|
|
|
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/1533/velocity/LuckPerms-Velocity-5.4.120.jar")
|
|
github("MiniPlaceholders", "MiniPlaceholders", libs.versions.miniplaceholders.get(), "MiniPlaceholders-Velocity-${libs.versions.miniplaceholders.get()}.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
|
|
))
|
|
}
|
|
}
|
|
|
|
publishMods.modrinth {
|
|
modLoaders.addAll("velocity")
|
|
optional {
|
|
slug = "signedvelocity"
|
|
}
|
|
}
|
|
|
|
configurations.runtimeDownload {
|
|
exclude("org.checkerframework", "checker-qual")
|
|
}
|