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,25 +1,19 @@
evaluationDependsOn(":ball-common")
dependencies {
implementation(project(":ball-common")) { isTransitive = false }
api(project(":ball-common")) { isTransitive = false }
compileOnly("net.md-5:bungeecord-api:+")
compileOnly("net.md-5:bungeecord-api:1.20-R0.1-SNAPSHOT")
compileOnly("cn.hamster3.mc.plugin:core-bungeecord:+")
val hamsterCoreVersion = property("hamster_core_version")
compileOnly("cn.hamster3.mc.plugin:core-bungeecord:${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.yaml")
exclude(group = "org.slf4j")
}
// https://mvnrepository.com/artifact/io.netty/netty-resolver-dns
implementation("io.netty:netty-resolver-dns:4.1.96.Final")
implementation("io.netty:netty-resolver-dns:+")
}
tasks {
processResources {
filesMatching("bungee.yml") {