feat: 添加 quartz 功能

This commit is contained in:
2023-12-15 19:53:21 +08:00
parent beb594b452
commit ec6d5dec65
4 changed files with 8 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ plugins {
} }
group = "cn.hamster3.mc.plugin" group = "cn.hamster3.mc.plugin"
version = "1.1.1" version = "1.1.2"
subprojects { subprojects {
apply { apply {
@@ -49,6 +49,8 @@ subprojects {
shadowJar { shadowJar {
archiveClassifier = "" archiveClassifier = ""
destinationDirectory = rootProject.buildDir destinationDirectory = rootProject.buildDir
relocate("org.quartz", "cn.hamster3.mc.plugin.core.lib.org.quartz")
relocate("org.terracotta.quartz", "cn.hamster3.mc.plugin.core.lib.org.terracotta.quartz")
relocate("net.kyori", "cn.hamster3.mc.plugin.core.lib.net.kyori") relocate("net.kyori", "cn.hamster3.mc.plugin.core.lib.net.kyori")
relocate("com.zaxxer.hikari", "cn.hamster3.mc.plugin.core.lib.com.zaxxer.hikari") relocate("com.zaxxer.hikari", "cn.hamster3.mc.plugin.core.lib.com.zaxxer.hikari")
relocate("de.tr7zw.changeme.nbtapi", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi") relocate("de.tr7zw.changeme.nbtapi", "cn.hamster3.mc.plugin.core.lib.de.tr7zw.nbtapi")

View File

@@ -18,9 +18,10 @@ dependencies {
exclude(module = "adventure-api") exclude(module = "adventure-api")
exclude(group = "org.jetbrains") exclude(group = "org.jetbrains")
} }
implementation("com.zaxxer:HikariCP:4+") { implementation("com.zaxxer:HikariCP:4.0.3") {
exclude(group = "org.slf4j") exclude(group = "org.slf4j")
} }
implementation("org.quartz-scheduler:quartz:2.3.2") { isTransitive = false }
} }
tasks { tasks {

View File

@@ -14,9 +14,10 @@ dependencies {
exclude(module = "adventure-api") exclude(module = "adventure-api")
exclude(group = "org.jetbrains") exclude(group = "org.jetbrains")
} }
implementation("com.zaxxer:HikariCP:4+") { implementation("com.zaxxer:HikariCP:4.0.3") {
exclude(group = "org.slf4j") exclude(group = "org.slf4j")
} }
implementation("org.quartz-scheduler:quartz:2.3.2") { isTransitive = false }
} }
tasks { tasks {

View File

@@ -14,6 +14,7 @@ dependencies {
exclude(group = "org.jetbrains") exclude(group = "org.jetbrains")
exclude(group = "com.google.code.gson") exclude(group = "com.google.code.gson")
} }
implementation("org.quartz-scheduler:quartz:2.3.2") { isTransitive = false }
} }
tasks { tasks {