mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
35 lines
872 B
Text
35 lines
872 B
Text
|
plugins {
|
||
|
java
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
api(projects.isolation)
|
||
|
compileOnlyApi(libs.velocity.api)
|
||
|
}
|
||
|
|
||
|
application {
|
||
|
mainClass.set("org.geysermc.geyser.platform.bungeecord.BungeeMain")
|
||
|
}
|
||
|
|
||
|
tasks {
|
||
|
jar {
|
||
|
dependsOn(":bungeecord-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
|
||
|
.bungeecordBase.dependencyProject
|
||
|
.layout.buildDirectory.dir("libs")
|
||
|
|
||
|
from(libsDir) {
|
||
|
include("Geyser-BungeeCord.jar")
|
||
|
rename("Geyser-BungeeCord.jar", "platform-base.jar")
|
||
|
into("bundled/")
|
||
|
}
|
||
|
}
|
||
|
}
|