forked from SteamWar/SteamWar
Optimize and improve VelocityCore size
Improve steamwar.devserver.gradle to not upload anything that is up to date!
This commit is contained in:
+12
@@ -22,6 +22,10 @@ plugins {
|
||||
alias(libs.plugins.shadow)
|
||||
}
|
||||
|
||||
tasks.build {
|
||||
finalizedBy(tasks.shadowJar)
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
@@ -34,4 +38,12 @@ dependencies {
|
||||
implementation(libs.jda) {
|
||||
exclude(module = "opus-java")
|
||||
}
|
||||
|
||||
implementation(libs.sqlite)
|
||||
implementation(libs.mysql)
|
||||
|
||||
implementation(libs.msgpack)
|
||||
implementation(libs.apolloprotos)
|
||||
|
||||
implementation(libs.nbt)
|
||||
}
|
||||
+3
-3
@@ -22,8 +22,8 @@ package de.steamwar.discord;
|
||||
import com.velocitypowered.api.plugin.Plugin;
|
||||
|
||||
@Plugin(
|
||||
id = "discordvelocitycore",
|
||||
name = "DiscordVelocityCore"
|
||||
id = "depencendiesvelocitycore",
|
||||
name = "DepencendiesVelocityCore"
|
||||
)
|
||||
public class Discord {
|
||||
public class Dependencies {
|
||||
}
|
||||
@@ -51,18 +51,10 @@ dependencies {
|
||||
compileOnly(libs.viavelocity)
|
||||
|
||||
compileOnly(project(":VelocityCore:Persistent", "default"))
|
||||
compileOnly(project(":VelocityCore:DiscordDependency", "default"))
|
||||
compileOnly(project(":VelocityCore:Dependencies", "default"))
|
||||
|
||||
implementation(project(":CommonCore"))
|
||||
implementation(project(":CommandFramework"))
|
||||
|
||||
implementation(libs.sqlite)
|
||||
implementation(libs.mysql)
|
||||
|
||||
implementation(libs.msgpack)
|
||||
implementation(libs.apolloprotos)
|
||||
|
||||
implementation(libs.nbt)
|
||||
}
|
||||
|
||||
tasks.register<DevServer>("DevVelocity") {
|
||||
@@ -70,6 +62,6 @@ tasks.register<DevServer>("DevVelocity") {
|
||||
description = "Run a Dev Velocity"
|
||||
dependsOn(":VelocityCore:shadowJar")
|
||||
dependsOn(":VelocityCore:Persistent:jar")
|
||||
dependsOn(":VelocityCore:DiscordDependency:jar")
|
||||
dependsOn(":VelocityCore:Dependencies:shadowJar")
|
||||
template = "DevVelocity"
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ import java.util.logging.Logger;
|
||||
@Plugin(
|
||||
id = "velocitycore",
|
||||
name = "VelocityCore",
|
||||
dependencies = { @Dependency(id = "persistentvelocitycore"), @Dependency(id = "discordvelocitycore") }
|
||||
dependencies = { @Dependency(id = "persistentvelocitycore"), @Dependency(id = "depencendiesvelocitycore") }
|
||||
)
|
||||
public class VelocityCore implements ReloadablePlugin {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user