All checks were successful
Publish Project / build (push) Successful in 3m17s
- 将 item-nbt-api 从 2.15.1 更新至 2.15.3 - 将 adventure-platform-bukkit 从 4.3.2 更新至 4.4.1 - 将 adventure-text-minimessage 从 4.15.0 更新至 4.25.0 - 升级项目版本号从 1.4.2 至 1.4.3 - 在各模块配置文件中新增线程池大小配置项 - 根据配置动态设置普通任务和定时任务线程池大小 - 默认线程池大小分别为 10 和 5,并支持自定义配置
59 lines
2.1 KiB
Kotlin
59 lines
2.1 KiB
Kotlin
@file:Suppress("VulnerableLibrariesLocal")
|
|
|
|
evaluationDependsOn(":core-common")
|
|
evaluationDependsOn(":core-relocate-lettuce")
|
|
|
|
val shade = configurations.create("shade")
|
|
|
|
dependencies {
|
|
api(project(":core-common")) { isTransitive = false }
|
|
compileOnly("org.spigotmc:spigot-api:1.18.2-R0.1-SNAPSHOT")
|
|
|
|
compileOnly("net.milkbowl.vault:VaultAPI:1.7") { isTransitive = false }
|
|
compileOnly("org.black_ixx:playerpoints:3.2.6") { isTransitive = false }
|
|
compileOnly("me.clip:placeholderapi:2.11.5") { isTransitive = false }
|
|
|
|
// https://www.spigotmc.org/resources/nbt-api.7939/
|
|
implementation("de.tr7zw:item-nbt-api:2.15.3")
|
|
|
|
api("net.kyori:adventure-platform-bukkit:4.4.1") {
|
|
exclude(group = "org.jetbrains")
|
|
exclude(group = "com.google.code.gson")
|
|
exclude(group = "io.netty")
|
|
}
|
|
api("net.kyori:adventure-text-minimessage:4.25.0") {
|
|
exclude(module = "adventure-api")
|
|
exclude(group = "org.jetbrains")
|
|
exclude(group = "io.netty")
|
|
}
|
|
|
|
implementation("com.zaxxer:HikariCP:4.0.3") { exclude(group = "org.slf4j") }
|
|
api("redis.clients:jedis:5.1.4") {
|
|
exclude(group = "com.google.code.gson")
|
|
exclude(group = "org.slf4j")
|
|
}
|
|
compileOnlyApi("io.lettuce:lettuce-core:6.7.1.RELEASE") {
|
|
exclude(group = "org.slf4j")
|
|
exclude(group = "io.netty")
|
|
}
|
|
shade(project(":core-relocate-lettuce"))
|
|
}
|
|
tasks {
|
|
processResources {
|
|
filesMatching("plugin.yml") {
|
|
expand(rootProject.properties)
|
|
}
|
|
}
|
|
withType<Jar> {
|
|
archiveBaseName = "HamsterCore-Bukkit"
|
|
}
|
|
shadowJar {
|
|
dependsOn(":core-relocate-lettuce:shadowJar")
|
|
val task = project(":core-relocate-lettuce").tasks.shadowJar.get()
|
|
from(task.outputs.files.map { if (it.isDirectory) it else zipTree(it) })
|
|
destinationDirectory = rootProject.layout.buildDirectory
|
|
relocate("de.tr7zw.changeme.nbtapi", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi")
|
|
relocate("de.tr7zw.annotations", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi.annotations")
|
|
}
|
|
}
|