Update velocity to 3.5.0-SNAPSHOT (#759)

This commit is contained in:
Josua Parks authored and GitHub committed 2026-03-02 16:09:14 -08:00
1 parent 63a9f0caf9
commit b8d35dda64
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ event = "1.0.0"
registry = "1.0.0-SNAPSHOT"
kyoriMoonshine = "2.0.4"
guice = "7.0.0"
velocityApi = "3.4.0-SNAPSHOT"
velocityApi = "3.5.0-SNAPSHOT"
minecraft = "1.21.11"
fabricLoader = "0.18.3"
fabricApi = "0.139.5+1.21.11"
+1 -1
View File
@@ -23,6 +23,7 @@ dependencies {
runtimeDownload(libs.mysql)
compileOnly("javax.inject:javax.inject:1")
implementation(libs.assistedInject)
}
velocityPluginJson {
@@ -55,7 +56,6 @@ tasks {
relocateCloud()
standardRuntimeRelocations()
relocateDependency("io.leangen.geantyref")
relocateGuice()
}
val prod = register<Zip>("productionJar") {
destinationDirectory.set(layout.buildDirectory.dir("libs"))
@@ -20,6 +20,7 @@
package net.draycia.carbon.velocity;
import com.google.inject.Guice;
import com.google.inject.Inject;
import com.google.inject.Injector;
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
@@ -28,7 +29,6 @@ import com.velocitypowered.api.plugin.PluginContainer;
import com.velocitypowered.api.plugin.annotation.DataDirectory;
import com.velocitypowered.api.proxy.ProxyServer;
import java.nio.file.Path;
import javax.inject.Inject;
import net.draycia.carbon.common.config.ConfigManager;
import net.draycia.carbon.common.config.MessagingSettings;
import net.draycia.carbon.common.util.CarbonDependencies;
@@ -47,7 +47,7 @@ public final class CarbonVelocityBootstrap {
private final Metrics.Factory metricsFactory;
private final Inner inner;
@Inject // use javax.inject, so it doesn't get relocated - we use Guice 7 and Velocity uses Guice 6.
@Inject
public CarbonVelocityBootstrap(
final ProxyServer proxyServer,
final PluginContainer pluginContainer,