build: 优化依赖

This commit is contained in:
2023-10-12 15:02:48 +08:00
parent bc79b1ed48
commit 19bac34bfb
5 changed files with 20 additions and 53 deletions

View File

@@ -1,22 +1,18 @@
evaluationDependsOn(":ball-common")
dependencies {
implementation(project(":ball-common")) { isTransitive = false }
api(project(":ball-common")) { isTransitive = false }
compileOnly("org.spigotmc:spigot-api:+")
compileOnly("org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("cn.hamster3.mc.plugin:core-bukkit:+")
compileOnly("me.clip:placeholderapi:+") { isTransitive = false }
val hamsterCoreVersion = property("hamster_core_version")
compileOnly("cn.hamster3.mc.plugin:core-bukkit:${hamsterCoreVersion}")
compileOnly("me.clip:placeholderapi:2.11.2") { isTransitive = false }
val redissionVersion = property("redission_version")
implementation("org.redisson:redisson:${redissionVersion}") {
implementation("org.redisson:redisson:+") {
exclude(group = "io.netty")
exclude(group = "org.slf4j")
}
}
tasks {
processResources {
filesMatching("plugin.yml") {