build: 优化构建脚本

This commit is contained in:
2023-12-08 19:26:40 +08:00
parent 305144b412
commit b3045644cb
2 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,9 @@ dependencies {
compileOnly("com.google.code.gson:gson:2.8.0")
compileOnly("com.google.guava:guava:31.0-jre")
compileOnly("io.lettuce:lettuce-core:+")
implementation("io.lettuce:lettuce-core:+") {
exclude(group = "io.netty")
}
}
tasks {

View File

@@ -5,7 +5,7 @@ plugins {
}
group = "cn.hamster3.mc.plugin"
version = "1.4.3"
version = "1.4.5"
subprojects {
apply {
@@ -47,12 +47,12 @@ subprojects {
archiveClassifier = "dev"
}
shadowJar {
archiveClassifier = ""
destinationDirectory = rootProject.buildDir
relocate("io.netty", "cn.hamster3.mc.plugin.ball.lib.io.netty")
relocate("io.lettuce", "cn.hamster3.mc.plugin.ball.lib.io.lettuce")
relocate("org.reactivestreams", "cn.hamster3.mc.plugin.ball.lib.org.reactivestreams")
relocate("reactor", "cn.hamster3.mc.plugin.ball.lib.reactor")
archiveClassifier = ""
destinationDirectory = rootProject.buildDir
}
build {
dependsOn(shadowJar)