build: 修改构建脚本

This commit is contained in:
2023-11-20 16:15:28 +08:00
parent d32d7c550d
commit a62703bbe3
4 changed files with 10 additions and 7 deletions

View File

@@ -5,7 +5,7 @@ plugins {
}
group = "cn.hamster3.mc.plugin"
version = "1.4.0"
version = "1.4.1"
subprojects {
apply {
@@ -25,7 +25,6 @@ subprojects {
dependencies {
compileOnly("org.jetbrains:annotations:+")
// https://mvnrepository.com/artifact/org.projectlombok/lombok
compileOnly("org.projectlombok:lombok:+")
annotationProcessor("org.projectlombok:lombok:+")
}
@@ -44,11 +43,15 @@ subprojects {
from(rootProject.file("LICENSE"))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
jar {
archiveClassifier = "dev"
}
shadowJar {
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 {