build: 优化依赖
This commit is contained in:
@@ -38,6 +38,11 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
processResources {
|
||||||
|
filesMatching("update.yml") {
|
||||||
|
expand(rootProject.properties)
|
||||||
|
}
|
||||||
|
}
|
||||||
withType<JavaCompile> {
|
withType<JavaCompile> {
|
||||||
options.encoding = "UTF-8"
|
options.encoding = "UTF-8"
|
||||||
}
|
}
|
||||||
@@ -45,11 +50,6 @@ subprojects {
|
|||||||
from(rootProject.file("LICENSE"))
|
from(rootProject.file("LICENSE"))
|
||||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
}
|
}
|
||||||
processResources {
|
|
||||||
filesMatching("update.yml") {
|
|
||||||
expand(rootProject.properties)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
build {
|
build {
|
||||||
dependsOn(shadowJar)
|
dependsOn(shadowJar)
|
||||||
}
|
}
|
||||||
|
@@ -19,21 +19,15 @@ dependencies {
|
|||||||
exclude(group = "org.jetbrains")
|
exclude(group = "org.jetbrains")
|
||||||
}
|
}
|
||||||
// https://mvnrepository.com/artifact/redis.clients/jedis
|
// https://mvnrepository.com/artifact/redis.clients/jedis
|
||||||
api("redis.clients:jedis:5.1.2") {
|
api("redis.clients:jedis:5.1.4") {
|
||||||
exclude(group = "com.google.code.gson")
|
exclude(group = "com.google.code.gson")
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
}
|
}
|
||||||
// https://mvnrepository.com/artifact/org.quartz-scheduler/quartz
|
|
||||||
api("org.quartz-scheduler:quartz:2.3.2") { isTransitive = false }
|
|
||||||
// https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail
|
|
||||||
api("com.sun.mail:jakarta.mail:2.0.1")
|
|
||||||
|
|
||||||
// https://www.spigotmc.org/resources/nbt-api.7939/
|
// https://www.spigotmc.org/resources/nbt-api.7939/
|
||||||
implementation("de.tr7zw:item-nbt-api:+")
|
implementation("de.tr7zw:item-nbt-api:2.13.1")
|
||||||
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
||||||
implementation("com.zaxxer:HikariCP:4.0.3") { exclude(group = "org.slf4j") }
|
implementation("com.zaxxer:HikariCP:4.0.3") { exclude(group = "org.slf4j") }
|
||||||
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk8
|
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.23") { exclude(group = "org.jetbrains") }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
@@ -15,18 +15,12 @@ dependencies {
|
|||||||
exclude(group = "org.jetbrains")
|
exclude(group = "org.jetbrains")
|
||||||
}
|
}
|
||||||
// https://mvnrepository.com/artifact/redis.clients/jedis
|
// https://mvnrepository.com/artifact/redis.clients/jedis
|
||||||
api("redis.clients:jedis:5.1.2") {
|
api("redis.clients:jedis:5.1.4") {
|
||||||
exclude(group = "com.google.code.gson")
|
exclude(group = "com.google.code.gson")
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
}
|
}
|
||||||
// https://mvnrepository.com/artifact/org.quartz-scheduler/quartz
|
|
||||||
api("org.quartz-scheduler:quartz:2.3.2") { isTransitive = false }
|
|
||||||
// https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail
|
|
||||||
api("com.sun.mail:jakarta.mail:2.0.1")
|
|
||||||
|
|
||||||
implementation("com.zaxxer:HikariCP:4.0.3") { exclude(group = "org.slf4j") }
|
implementation("com.zaxxer:HikariCP:4.0.3") { exclude(group = "org.slf4j") }
|
||||||
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib-jdk8
|
|
||||||
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.23") { exclude(group = "org.jetbrains") }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
|
@@ -18,13 +18,10 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/redis.clients/jedis
|
// https://mvnrepository.com/artifact/redis.clients/jedis
|
||||||
compileOnlyApi("redis.clients:jedis:5.1.2") {
|
compileOnlyApi("redis.clients:jedis:5.1.4") {
|
||||||
exclude(group = "com.google.code.gson")
|
exclude(group = "com.google.code.gson")
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
}
|
}
|
||||||
compileOnlyApi("org.quartz-scheduler:quartz:2.3.2") { isTransitive = false }
|
|
||||||
// https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail
|
|
||||||
compileOnlyApi("com.sun.mail:jakarta.mail:2.0.1")
|
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
||||||
compileOnly("com.zaxxer:HikariCP:4.0.3") { isTransitive = false }
|
compileOnly("com.zaxxer:HikariCP:4.0.3") { isTransitive = false }
|
||||||
|
@@ -8,23 +8,18 @@ dependencies {
|
|||||||
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
annotationProcessor("com.velocitypowered:velocity-api:3.3.0-SNAPSHOT")
|
||||||
|
|
||||||
compileOnlyApi("net.kyori:adventure-platform-api:4.3.2") { isTransitive = false }
|
compileOnlyApi("net.kyori:adventure-platform-api:4.3.2") { isTransitive = false }
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/redis.clients/jedis
|
// https://mvnrepository.com/artifact/redis.clients/jedis
|
||||||
api("redis.clients:jedis:5.1.2") {
|
api("redis.clients:jedis:5.1.4") {
|
||||||
exclude(group = "com.google.code.gson")
|
exclude(group = "com.google.code.gson")
|
||||||
exclude(group = "org.slf4j")
|
exclude(group = "org.slf4j")
|
||||||
}
|
}
|
||||||
// https://mvnrepository.com/artifact/org.quartz-scheduler/quartz
|
|
||||||
api("org.quartz-scheduler:quartz:2.3.2") { isTransitive = false }
|
|
||||||
// https://mvnrepository.com/artifact/com.sun.mail/jakarta.mail
|
|
||||||
api("com.sun.mail:jakarta.mail:2.0.1")
|
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
||||||
implementation("com.zaxxer:HikariCP:5.1.0") { isTransitive = false }
|
implementation("com.zaxxer:HikariCP:5.1.0") { isTransitive = false }
|
||||||
|
|
||||||
// https://mvnrepository.com/artifact/com.mysql/mysql-connector-j
|
// https://mvnrepository.com/artifact/com.mysql/mysql-connector-j
|
||||||
runtimeOnly("com.mysql:mysql-connector-j:8.3.0")
|
runtimeOnly("com.mysql:mysql-connector-j:8.3.0")
|
||||||
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-stdlib
|
|
||||||
runtimeOnly("org.jetbrains.kotlin:kotlin-stdlib:1.9.23") { exclude(group = "org.jetbrains") }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceSets.create("templates") {
|
sourceSets.create("templates") {
|
||||||
|
Reference in New Issue
Block a user