mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Isolated Velocity
This commit is contained in:
parent
bc301fba60
commit
d44b523acb
32 changed files with 337 additions and 131 deletions
|
@ -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")
|
||||
|
||||
|
|
35
bootstrap/spigot/isolated/build.gradle.kts
Normal file
35
bootstrap/spigot/isolated/build.gradle.kts
Normal 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/")
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
org.geysermc.geyser.platform.spigot.GeyserSpigotPlatform
|
Loading…
Add table
Add a link
Reference in a new issue