Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Gradle Build

on: [push, pull_request]
on: [push, pull_request, workflow_dispatch]

jobs:
build:
Expand All @@ -10,22 +10,22 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v7

- name: Set up JDK 21
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
java-version: 21
java-version: 25
distribution: 'temurin'
cache: 'gradle'

- name: Build with Gradle
uses: nick-invision/retry@v4
with:
timeout_minutes: 5
max_attempts: 2
command: ./gradlew clean build
# Velocity 4 port: only the proxy module is maintained in this fork.
# The backend modules (paper/fabric/sponge/minestom) are unchanged from
# upstream — use the upstream 1.4.1 release jars for backend servers.
- name: Build proxy plugin
run: ./gradlew :signedvelocity-proxy:build -x test --no-daemon

- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: SignedVelocity
path: build/SignedVelocity-*.jar

name: SignedVelocity-Proxy
path: build/SignedVelocity-Proxy-*.jar
if-no-files-found: error
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ allprojects {
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
languageVersion.set(JavaLanguageVersion.of(25))
vendor.set(JvmVendorSpec.AZUL)
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ metadata.format.version = "1.1"
[versions]

# CompileOnly dependencies
velocity = "3.4.0-SNAPSHOT"
velocity = "4.1.0-SNAPSHOT"
paper = "26.1.2.build.65-stable"
minestom-server = "2025.10.05-1.21.8"
minecraft = "1.21.9-rc1"
Expand Down
7 changes: 5 additions & 2 deletions velocity/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ plugins {

dependencies {
compileOnly(libs.velocity.api)
compileOnly(libs.velocity.proxy)
annotationProcessor(libs.velocity.api)
implementation(libs.bstats)

compileOnly(libs.packetevents.velocity)
compileOnly(libs.vpacketevents)
implementation(projects.signedvelocityShared)
}

tasks {
// Velocity 4.x artifacts are published for JVM 25 — this module must match,
// overriding the repo-wide release 21 set in the root build script.
withType<JavaCompile> {
options.release.set(25)
}
build {
dependsOn(shadowJar)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
version = Constants.VERSION,
description = "Allows you to cancel or modify messages or commands from Velocity without synchronization problems",
dependencies = {
@Dependency(id = "vpacketevents", optional = true),
@Dependency(id = "packetevents", optional = true)
}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@

import java.util.Map;

public sealed interface PacketAdapter permits PacketEventsAdapter, VPacketEventsAdapter {
public sealed interface PacketAdapter permits PacketEventsAdapter {
void register();

static void register(final Injector injector, final PluginManager pluginManager) {
// VPacketEvents support was dropped in the Velocity 4 port: its adapter
// required velocity-proxy internals that PaperMC no longer publishes for 4.x.
final Map<String, Class<? extends PacketAdapter>> adapters = Map.of(
"packetevents", PacketEventsAdapter.class,
"vpacketevents", VPacketEventsAdapter.class
"packetevents", PacketEventsAdapter.class
// Probable support of protocolize?
);
for (final var adapter : adapters.entrySet()) {
Expand Down

This file was deleted.