Isolated Velocity

This commit is contained in:
Tim203 2024-02-25 19:57:04 +01:00
parent bc301fba60
commit d44b523acb
No known key found for this signature in database
32 changed files with 337 additions and 131 deletions

View file

@ -1,3 +1,7 @@
plugins {
id("geyser.publish-conventions")
}
dependencies {
api(projects.core)
api(libs.erosion.bukkit.common) {
@ -30,10 +34,6 @@ platformRelocate("org.yaml") // Broken as of 1.20
provided(libs.viaversion)
provided("com.mojang", "authlib", "1.5.21")
application {
mainClass.set("org.geysermc.geyser.platform.spigot.GeyserSpigotMain")
}
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveBaseName.set("Geyser-Spigot")

View file

@ -0,0 +1,35 @@
plugins {
java
}
dependencies {
api(projects.isolation)
compileOnlyApi(libs.velocity.api)
}
application {
mainClass.set("org.geysermc.geyser.platform.spigot.SpigotMain")
}
tasks {
jar {
dependsOn(":spigot-base:build", configurations.runtimeClasspath)
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
archiveBaseName = "geyser-${project.name}"
archiveVersion = ""
archiveClassifier = ""
val libsDir = project.projects
.spigotBase.dependencyProject
.layout.buildDirectory.dir("libs")
from(libsDir) {
include("Geyser-Spigot.jar")
rename("Geyser-Spigot.jar", "platform-base.jar")
into("bundled/")
}
}
}

View file

@ -0,0 +1 @@
org.geysermc.geyser.platform.spigot.GeyserSpigotPlatform