feat: 为 BungeeCord 添加完整的 netty 并重定向
All checks were successful
Publish Project / build (push) Successful in 1m26s

This commit is contained in:
2025-07-03 03:52:50 +08:00
parent 1c83615b7e
commit 68747f76bb

View File

@@ -1,6 +1,9 @@
@file:Suppress("VulnerableLibrariesLocal")
evaluationDependsOn(":core-common")
evaluationDependsOn(":core-relocate-lettuce")
val shade = configurations.create("shade")
dependencies {
api(project(":core-common")) { isTransitive = false }
@@ -20,10 +23,11 @@ dependencies {
exclude(group = "com.google.code.gson")
exclude(group = "org.slf4j")
}
api("io.lettuce:lettuce-core:6.7.1.RELEASE") {
exclude(group = "io.netty")
compileOnlyApi("io.lettuce:lettuce-core:6.7.1.RELEASE") {
exclude(group = "org.slf4j")
exclude(group = "io.netty")
}
shade(project(":core-relocate-lettuce"))
}
tasks {
@@ -36,6 +40,13 @@ tasks {
archiveBaseName = "HamsterCore-BungeeCord"
}
shadowJar {
dependsOn(":core-relocate-lettuce:shadowJar")
val task = project(":core-relocate-lettuce").tasks.shadowJar.get()
from(task.outputs.files.map {
if (it.isDirectory) it else zipTree(
it
)
})
destinationDirectory = rootProject.layout.buildDirectory
}
}