build: 优化构建脚本

This commit is contained in:
2023-06-16 21:45:26 +08:00
parent 421f28586e
commit 444326dc49

View File

@@ -64,11 +64,11 @@ subprojects {
shadowJar { shadowJar {
classifier = '' classifier = ''
relocate 'org.slf4j', 'cn.hamster3.mc.plugin.core.lib.slf4j' relocate 'org.slf4j', 'cn.hamster3.mc.plugin.core.lib.org.slf4j'
relocate 'net.kyori', 'cn.hamster3.mc.plugin.core.lib.kyori' relocate 'net.kyori', 'cn.hamster3.mc.plugin.core.lib.net.kyori'
relocate 'com.zaxxer.hikari', 'cn.hamster3.mc.plugin.core.lib.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.nbtapi' relocate 'de.tr7zw.changeme.nbtapi', 'cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi'
relocate 'de.tr7zw.annotations', 'cn.hamster3.mc.plugin.core.lib.nbtapi.annotations' relocate 'de.tr7zw.annotations', 'cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi.annotations'
destinationDir(rootProject.buildDir) destinationDir(rootProject.buildDir)
} }
tasks.build.dependsOn(shadowJar) tasks.build.dependsOn(shadowJar)