build: 优化依赖
This commit is contained in:
@@ -1,34 +1,20 @@
|
||||
evaluationDependsOn(":core-common")
|
||||
|
||||
dependencies {
|
||||
compileOnly("net.md-5:bungeecord-api:1.20-R0.1-SNAPSHOT")
|
||||
api(project(":core-common")) { isTransitive = false }
|
||||
compileOnly("net.md-5:bungeecord-api:+")
|
||||
|
||||
implementation(project(":core-common")) {
|
||||
isTransitive = false
|
||||
}
|
||||
val adventureVersion = property("adventure_version")
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-platform-bungeecord
|
||||
implementation("net.kyori:adventure-platform-bungeecord:${adventureVersion}") {
|
||||
api("net.kyori:adventure-platform-bungeecord:4+") {
|
||||
exclude(group = "org.jetbrains")
|
||||
exclude(group = "com.google.code.gson")
|
||||
}
|
||||
val adventureSerializerVersion = property("adventure_serializer_version")
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-minimessage
|
||||
implementation("net.kyori:adventure-text-minimessage:${adventureSerializerVersion}") {
|
||||
api("net.kyori:adventure-text-minimessage:4+") {
|
||||
exclude(module = "adventure-api")
|
||||
exclude(group = "org.jetbrains")
|
||||
}
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-gson
|
||||
implementation("net.kyori:adventure-text-serializer-gson:${adventureSerializerVersion}") {
|
||||
exclude(group = "org.jetbrains")
|
||||
exclude(group = "com.google.code.gson")
|
||||
}
|
||||
// https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-legacy
|
||||
implementation("net.kyori:adventure-text-serializer-legacy:${adventureSerializerVersion}") {
|
||||
exclude(group = "org.jetbrains")
|
||||
}
|
||||
|
||||
val hikariVersion = property("HikariCP_version")
|
||||
implementation("com.zaxxer:HikariCP:${hikariVersion}") {
|
||||
implementation("com.zaxxer:HikariCP:4+") {
|
||||
exclude(group = "org.slf4j")
|
||||
}
|
||||
}
|
||||
@@ -39,7 +25,10 @@ tasks {
|
||||
expand(project.properties)
|
||||
}
|
||||
}
|
||||
withType<Jar>() {
|
||||
withType<Jar> {
|
||||
archiveBaseName = "HamsterCore-BungeeCord"
|
||||
}
|
||||
shadowJar {
|
||||
destinationDirectory = rootProject.buildDir
|
||||
}
|
||||
}
|
||||
|
@@ -91,22 +91,22 @@ public final class CoreBungeeAPI extends CoreAPI {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Gson getGson() {
|
||||
public @NotNull Gson getGson() {
|
||||
return gson;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Gson getHumanGson() {
|
||||
public @NotNull Gson getHumanGson() {
|
||||
return humanGson;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ExecutorService getExecutorService() {
|
||||
public @NotNull ExecutorService getExecutorService() {
|
||||
return executorService;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ScheduledExecutorService getScheduledExecutorService() {
|
||||
public @NotNull ScheduledExecutorService getScheduledExecutorService() {
|
||||
return scheduledExecutorService;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user