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

@ -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