build: 优化构建脚本

This commit is contained in:
2023-12-08 19:25:45 +08:00
parent 3c1d572998
commit 2474f12be0
3 changed files with 1 additions and 6 deletions

View File

@@ -48,6 +48,7 @@ subprojects {
} }
shadowJar { shadowJar {
archiveClassifier = "" archiveClassifier = ""
destinationDirectory = rootProject.buildDir
relocate("net.kyori", "cn.hamster3.mc.plugin.core.lib.net.kyori") relocate("net.kyori", "cn.hamster3.mc.plugin.core.lib.net.kyori")
relocate("com.zaxxer.hikari", "cn.hamster3.mc.plugin.core.lib.com.zaxxer.hikari") relocate("com.zaxxer.hikari", "cn.hamster3.mc.plugin.core.lib.com.zaxxer.hikari")
relocate("de.tr7zw.changeme.nbtapi", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi") relocate("de.tr7zw.changeme.nbtapi", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi")

View File

@@ -32,7 +32,4 @@ tasks {
withType<Jar> { withType<Jar> {
archiveBaseName = "HamsterCore-Bukkit" archiveBaseName = "HamsterCore-Bukkit"
} }
shadowJar {
destinationDirectory = rootProject.buildDir
}
} }

View File

@@ -28,7 +28,4 @@ tasks {
withType<Jar> { withType<Jar> {
archiveBaseName = "HamsterCore-BungeeCord" archiveBaseName = "HamsterCore-BungeeCord"
} }
shadowJar {
destinationDirectory = rootProject.buildDir
}
} }