summaryrefslogtreecommitdiff
path: root/platform-velocity
diff options
context:
space:
mode:
authorSho Sakuma <me@m1sk9.dev>2026-02-01 00:01:27 +0900
committerSho Sakuma <me@m1sk9.dev>2026-02-01 00:01:30 +0900
commit14cf85817a59a4d8773ae07a861d9e9b468986f2 (patch)
tree50f8760b013d0f7b19c50ff03121969e78f1cf77 /platform-velocity
parente2bba3450668106d7e942125668b5d62df450c8c (diff)
downloadLunaticChat-14cf85817a59a4d8773ae07a861d9e9b468986f2.tar.gz
LunaticChat-14cf85817a59a4d8773ae07a861d9e9b468986f2.tar.bz2
LunaticChat-14cf85817a59a4d8773ae07a861d9e9b468986f2.zip
deps: Add Velocity API
Diffstat (limited to 'platform-velocity')
-rw-r--r--platform-velocity/build.gradle.kts34
1 files changed, 32 insertions, 2 deletions
diff --git a/platform-velocity/build.gradle.kts b/platform-velocity/build.gradle.kts
index db21bc5..fc21c11 100644
--- a/platform-velocity/build.gradle.kts
+++ b/platform-velocity/build.gradle.kts
@@ -1,17 +1,47 @@
plugins {
kotlin("jvm")
+ kotlin("plugin.serialization")
id("com.gradleup.shadow")
}
+repositories {
+ maven("https://repo.papermc.io/repository/maven-public/") {
+ name = "papermc-repo"
+ }
+}
+
dependencies {
// Engine module (provides serialization, coroutines, ktor)
api(project(":engine"))
+
+ // Velocity-specific dependencies
+ compileOnly("com.velocitypowered:velocity-api:3.4.0-SNAPSHOT")
+ annotationProcessor("com.velocitypowered:velocity-api:3.4.0-SNAPSHOT")
+ implementation("com.charleskorn.kaml:kaml:0.104.0") // YAML configuration
+
+ // Test dependencies
+ testImplementation("com.velocitypowered:velocity-api:3.4.0-SNAPSHOT")
+ testImplementation("io.mockk:mockk:1.14.9")
+ testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.2")
}
tasks {
shadowJar {
- archiveClassifier.set("all")
- archiveBaseName.set("LunaticChat-Velocity")
+ archiveClassifier.set("velocity")
+ archiveBaseName.set("LunaticChat")
+ }
+
+ jar {
+ enabled = false
+ }
+
+ processResources {
+ val props = mapOf("version" to project.version)
+ inputs.properties(props)
+ filteringCharset = "UTF-8"
+ filesMatching("velocity-plugin.json") {
+ expand(props)
+ }
}
build {