build: 修改构建脚本
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
evaluationDependsOn(":ball-common")
|
evaluationDependsOn(":ball-common")
|
||||||
|
|
||||||
dependencies {
|
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("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
|
||||||
|
|
||||||
compileOnly("cn.hamster3.mc.plugin:core-bukkit:+")
|
compileOnly("cn.hamster3.mc.plugin:core-bukkit:+")
|
||||||
@@ -18,7 +18,7 @@ tasks {
|
|||||||
expand(project.properties)
|
expand(project.properties)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
withType<Jar>() {
|
withType<Jar> {
|
||||||
archiveBaseName = "HamsterBall-Bukkit"
|
archiveBaseName = "HamsterBall-Bukkit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
evaluationDependsOn(":ball-common")
|
evaluationDependsOn(":ball-common")
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api(project(":ball-common")) { isTransitive = false }
|
implementation(project(":ball-common")) { isTransitive = false }
|
||||||
compileOnly("net.md-5:bungeecord-api:+")
|
compileOnly("net.md-5:bungeecord-api:+")
|
||||||
|
|
||||||
compileOnly("cn.hamster3.mc.plugin:core-bungee:+")
|
compileOnly("cn.hamster3.mc.plugin:core-bungee:+")
|
||||||
@@ -17,7 +17,7 @@ tasks {
|
|||||||
expand(project.properties)
|
expand(project.properties)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
withType<Jar>() {
|
withType<Jar> {
|
||||||
archiveBaseName = "HamsterBall-BungeeCord"
|
archiveBaseName = "HamsterBall-BungeeCord"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -10,7 +10,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<Jar>() {
|
withType<Jar> {
|
||||||
archiveBaseName = "HamsterBall-Common"
|
archiveBaseName = "HamsterBall-Common"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "cn.hamster3.mc.plugin"
|
group = "cn.hamster3.mc.plugin"
|
||||||
version = "1.4.0"
|
version = "1.4.1"
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply {
|
apply {
|
||||||
@@ -25,7 +25,6 @@ subprojects {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly("org.jetbrains:annotations:+")
|
compileOnly("org.jetbrains:annotations:+")
|
||||||
// https://mvnrepository.com/artifact/org.projectlombok/lombok
|
|
||||||
compileOnly("org.projectlombok:lombok:+")
|
compileOnly("org.projectlombok:lombok:+")
|
||||||
annotationProcessor("org.projectlombok:lombok:+")
|
annotationProcessor("org.projectlombok:lombok:+")
|
||||||
}
|
}
|
||||||
@@ -44,11 +43,15 @@ subprojects {
|
|||||||
from(rootProject.file("LICENSE"))
|
from(rootProject.file("LICENSE"))
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
}
|
}
|
||||||
|
jar {
|
||||||
|
archiveClassifier = "dev"
|
||||||
|
}
|
||||||
shadowJar {
|
shadowJar {
|
||||||
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
|
destinationDirectory = rootProject.buildDir
|
||||||
}
|
}
|
||||||
build {
|
build {
|
||||||
|
Reference in New Issue
Block a user