mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
build(velocity): remove blossom usage
This commit is contained in:
6 files changed
+53
-44
No files matched your search
@@ -1,8 +1,5 @@
|
||||
import java.util.Locale
|
||||
|
||||
plugins {
|
||||
id("carbon.shadow-platform")
|
||||
id("net.kyori.blossom")
|
||||
id("xyz.jpenilla.run-velocity")
|
||||
}
|
||||
|
||||
@@ -10,7 +7,6 @@ dependencies {
|
||||
implementation(projects.carbonchatCommon)
|
||||
|
||||
compileOnly(libs.velocityApi)
|
||||
annotationProcessor(libs.velocityApi)
|
||||
|
||||
implementation(libs.cloudVelocity)
|
||||
compileOnly(libs.miniplaceholders)
|
||||
@@ -36,17 +32,14 @@ tasks {
|
||||
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)
|
||||
processResources {
|
||||
replace("velocity-plugin.json", mapOf(
|
||||
"id" to rootProject.name.lowercase(),
|
||||
"name" to rootProject.name,
|
||||
"version" to project.version,
|
||||
"description" to project.description,
|
||||
"url" to GITHUB_REPO_URL
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -24,8 +24,6 @@ import com.google.inject.Injector;
|
||||
import com.velocitypowered.api.event.Subscribe;
|
||||
import com.velocitypowered.api.event.proxy.ProxyInitializeEvent;
|
||||
import com.velocitypowered.api.event.proxy.ProxyShutdownEvent;
|
||||
import com.velocitypowered.api.plugin.Dependency;
|
||||
import com.velocitypowered.api.plugin.Plugin;
|
||||
import com.velocitypowered.api.plugin.PluginContainer;
|
||||
import com.velocitypowered.api.plugin.annotation.DataDirectory;
|
||||
import com.velocitypowered.api.proxy.ProxyServer;
|
||||
@@ -33,19 +31,6 @@ import java.nio.file.Path;
|
||||
import net.draycia.carbon.common.util.CarbonDependencies;
|
||||
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
|
||||
|
||||
@Plugin(
|
||||
id = "$[ID]",
|
||||
name = "$[NAME]",
|
||||
version = "$[VERSION]",
|
||||
description = "$[DESCRIPTION]",
|
||||
url = "$[URL]",
|
||||
authors = {"Draycia"},
|
||||
dependencies = {
|
||||
@Dependency(id = "luckperms"),
|
||||
@Dependency(id = "miniplaceholders", optional = true),
|
||||
@Dependency(id = "unsignedvelocity", optional = true)
|
||||
}
|
||||
)
|
||||
public final class CarbonVelocityBootstrap {
|
||||
|
||||
private final Injector parentInjector;
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"id": "${id}",
|
||||
"name": "${name}",
|
||||
"version": "${version}",
|
||||
"description": "${description}",
|
||||
"url": "${url}",
|
||||
"authors": [
|
||||
"Draycia"
|
||||
],
|
||||
"dependencies": [
|
||||
{
|
||||
"id": "luckperms",
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
"id": "miniplaceholders",
|
||||
"optional": true
|
||||
},
|
||||
{
|
||||
"id": "unsignedvelocity",
|
||||
"optional": true
|
||||
}
|
||||
],
|
||||
"main": "net.draycia.carbon.velocity.CarbonVelocityBootstrap"
|
||||
}
|
||||
Reference in new issue
Block a user