Files
Carbon/velocity/build.gradle.kts
T
Jason 307395ce5b Download dependencies at runtime on all platforms (not just Paper), and read dependency info from file in plugin jar generated by Gradle task (#259)
* Download dependencies at runtime on all platforms (not just Paper), and read dependency info from file in plugin jar generated by Gradle task

* Add maven central as fallback for paper mirror

* filter duplicate dependencies

* fix fabric runServer

* add todo

* enable hangar publishing

* - exclude unneeded deps from runtime dl
- sort deps and relocations in the list file
- other misc fixes

* move jdbi relocation

* don't log anything when we don't download or relocate any dependencies

* add back mariadb driver and download more dependencies at runtime

and other related build changes

* build cleanup

* build cleanup

* remove useless dependencies block
2023-07-04 00:24:00 -07:00

56 lines
1.2 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.jarRelocator)
runtimeDownload(libs.mysql)
}
tasks {
shadowJar {
relocateCloud()
standardRuntimeRelocations()
relocateDependency("com.google.inject.assistedinject")
relocateDependency("io.leangen.geantyref")
relocateDependency("me.lucko.jarrelocator")
relocateDependency("org.objectweb.asm")
}
writeDependencies {
standardRuntimeRelocations()
relocateDependency("com.google.inject.assistedinject")
}
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")
}