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

@@ -3,7 +3,7 @@
evaluationDependsOn(":ball-common")
dependencies {
api(project(":ball-common")) { isTransitive = false }
implementation(project(":ball-common")) { isTransitive = false }
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("cn.hamster3.mc.plugin:core-bukkit:+")
@@ -18,7 +18,7 @@ tasks {
expand(project.properties)
}
}
withType<Jar>() {
withType<Jar> {
archiveBaseName = "HamsterBall-Bukkit"
}
}

View File

@@ -3,7 +3,7 @@
evaluationDependsOn(":ball-common")
dependencies {
api(project(":ball-common")) { isTransitive = false }
implementation(project(":ball-common")) { isTransitive = false }
compileOnly("net.md-5:bungeecord-api:+")
compileOnly("cn.hamster3.mc.plugin:core-bungee:+")
@@ -17,7 +17,7 @@ tasks {
expand(project.properties)
}
}
withType<Jar>() {
withType<Jar> {
archiveBaseName = "HamsterBall-BungeeCord"
}
}

View File

@@ -10,7 +10,7 @@ dependencies {
}
tasks {
withType<Jar>() {
withType<Jar> {
archiveBaseName = "HamsterBall-Common"
}
}

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 {