feat: 为 BungeeCord 添加完整的 netty 并重定向
All checks were successful
Publish Project / build (push) Successful in 1m26s
All checks were successful
Publish Project / build (push) Successful in 1m26s
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
@file:Suppress("VulnerableLibrariesLocal")
|
@file:Suppress("VulnerableLibrariesLocal")
|
||||||
|
|
||||||
evaluationDependsOn(":core-common")
|
evaluationDependsOn(":core-common")
|
||||||
|
evaluationDependsOn(":core-relocate-lettuce")
|
||||||
|
|
||||||
|
val shade = configurations.create("shade")
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":core-common")) { isTransitive = false }
|
api(project(":core-common")) { isTransitive = false }
|
||||||
@@ -20,10 +23,11 @@ dependencies {
|
|||||||
exclude(group = "com.google.code.gson")
|
exclude(group = "com.google.code.gson")
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
}
|
}
|
||||||
api("io.lettuce:lettuce-core:6.7.1.RELEASE") {
|
compileOnlyApi("io.lettuce:lettuce-core:6.7.1.RELEASE") {
|
||||||
exclude(group = "io.netty")
|
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
|
exclude(group = "io.netty")
|
||||||
}
|
}
|
||||||
|
shade(project(":core-relocate-lettuce"))
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
@@ -36,6 +40,13 @@ tasks {
|
|||||||
archiveBaseName = "HamsterCore-BungeeCord"
|
archiveBaseName = "HamsterCore-BungeeCord"
|
||||||
}
|
}
|
||||||
shadowJar {
|
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
|
destinationDirectory = rootProject.layout.buildDirectory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user