From 1dd2787059331db57049cb1dac8a38ceea859992 Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Sun, 2 Aug 2026 18:34:21 +0900 Subject: feat(velocity)!: build against Velocity API 4.0.0 and drop Velocity 3.5.x support Velocity moved to the 4.x generation while platform-velocity still compiled against 3.5.1, so the debug environment had to pin an older proxy than the one most users now run. The migration needed no source changes. Comparing every one of the 213 classes in the API jar with javap shows 4.0.0 is identical to 3.5.1 in its public signatures; the supported protocol range is unchanged too. The one real difference is the POM, which moves adventure-bom from 4.26.1 to 5.2.0. Support for 3.5.x is dropped even though the JAR would still load there, because keeping it meant Adventure 4.26.1 could be the runtime and engine had to stay inside the API surface both Adventure majors share -- a constraint no build step could check. Narrowing to 4.x makes every supported runtime ship Adventure 5.2.0, matching what engine already compiles against, so the constraint is gone rather than merely documented. Nothing enforces the requirement in code, matching how dropping 3.4.0 was handled in v1.1.0. Also drops two dead dependencies: kaml, declared but never imported, worth about 1 MB of shaded JAR, and the velocity-api annotationProcessor, which does nothing without Java sources or kapt. --- platform-velocity/build.gradle.kts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'platform-velocity') diff --git a/platform-velocity/build.gradle.kts b/platform-velocity/build.gradle.kts index f4c028b..3cd8c2d 100644 --- a/platform-velocity/build.gradle.kts +++ b/platform-velocity/build.gradle.kts @@ -17,12 +17,10 @@ dependencies { api(project(":engine")) // Velocity-specific dependencies - compileOnly("com.velocitypowered:velocity-api:3.5.1") - annotationProcessor("com.velocitypowered:velocity-api:3.5.1") - implementation("com.charleskorn.kaml:kaml:0.104.0") // YAML configuration + compileOnly("com.velocitypowered:velocity-api:4.0.0") // Test dependencies - testImplementation("com.velocitypowered:velocity-api:3.5.1") + testImplementation("com.velocitypowered:velocity-api:4.0.0") testImplementation("io.mockk:mockk:1.14.11") testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.11.0") } -- cgit v1.2.1