build: 优化构建脚本
This commit is contained in:
@@ -6,7 +6,9 @@ dependencies {
|
|||||||
compileOnly("com.google.code.gson:gson:2.8.0")
|
compileOnly("com.google.code.gson:gson:2.8.0")
|
||||||
compileOnly("com.google.guava:guava:31.0-jre")
|
compileOnly("com.google.guava:guava:31.0-jre")
|
||||||
|
|
||||||
compileOnly("io.lettuce:lettuce-core:+")
|
implementation("io.lettuce:lettuce-core:+") {
|
||||||
|
exclude(group = "io.netty")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
@@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "cn.hamster3.mc.plugin"
|
group = "cn.hamster3.mc.plugin"
|
||||||
version = "1.4.3"
|
version = "1.4.5"
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply {
|
apply {
|
||||||
@@ -47,12 +47,12 @@ subprojects {
|
|||||||
archiveClassifier = "dev"
|
archiveClassifier = "dev"
|
||||||
}
|
}
|
||||||
shadowJar {
|
shadowJar {
|
||||||
|
archiveClassifier = ""
|
||||||
|
destinationDirectory = rootProject.buildDir
|
||||||
relocate("io.netty", "cn.hamster3.mc.plugin.ball.lib.io.netty")
|
relocate("io.netty", "cn.hamster3.mc.plugin.ball.lib.io.netty")
|
||||||
relocate("io.lettuce", "cn.hamster3.mc.plugin.ball.lib.io.lettuce")
|
relocate("io.lettuce", "cn.hamster3.mc.plugin.ball.lib.io.lettuce")
|
||||||
relocate("org.reactivestreams", "cn.hamster3.mc.plugin.ball.lib.org.reactivestreams")
|
relocate("org.reactivestreams", "cn.hamster3.mc.plugin.ball.lib.org.reactivestreams")
|
||||||
relocate("reactor", "cn.hamster3.mc.plugin.ball.lib.reactor")
|
relocate("reactor", "cn.hamster3.mc.plugin.ball.lib.reactor")
|
||||||
archiveClassifier = ""
|
|
||||||
destinationDirectory = rootProject.buildDir
|
|
||||||
}
|
}
|
||||||
build {
|
build {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
|
Reference in New Issue
Block a user