build: 修复 netty 依赖以支持 1.12 及以下版本

This commit is contained in:
2024-02-19 14:03:43 +08:00
parent 6f02c3bd56
commit edbd873a64
3 changed files with 5 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ plugins {
} }
group = "cn.hamster3.mc.plugin" group = "cn.hamster3.mc.plugin"
version = "1.2.1" version = "1.2.2"
subprojects { subprojects {
apply { apply {
@@ -51,6 +51,7 @@ subprojects {
shadowJar { shadowJar {
archiveClassifier = "" archiveClassifier = ""
relocate("io.lettuce", "cn.hamster3.mc.plugin.core.lib.io.lettuce") relocate("io.lettuce", "cn.hamster3.mc.plugin.core.lib.io.lettuce")
relocate("io.netty", "cn.hamster3.mc.plugin.core.lib.io.netty")
relocate("reactor", "cn.hamster3.mc.plugin.core.lib.reactor") relocate("reactor", "cn.hamster3.mc.plugin.core.lib.reactor")
relocate("org.reactivestreams", "cn.hamster3.mc.plugin.core.lib.org.reactivestreams") relocate("org.reactivestreams", "cn.hamster3.mc.plugin.core.lib.org.reactivestreams")

View File

@@ -29,11 +29,7 @@ dependencies {
exclude(group = "org.slf4j") exclude(group = "org.slf4j")
} }
// https://mvnrepository.com/artifact/io.lettuce/lettuce-core // https://mvnrepository.com/artifact/io.lettuce/lettuce-core
implementation("io.lettuce:lettuce-core:6.3.1.RELEASE") { implementation("io.lettuce:lettuce-core:6.3.1.RELEASE")
exclude(group = "io.netty")
}
// https://mvnrepository.com/artifact/io.netty/netty-codec-dns
implementation("io.netty:netty-codec-dns:4.1.104.Final")
// https://mvnrepository.com/artifact/org.quartz-scheduler/quartz // https://mvnrepository.com/artifact/org.quartz-scheduler/quartz
implementation("org.quartz-scheduler:quartz:2.3.2") { implementation("org.quartz-scheduler:quartz:2.3.2") {
isTransitive = false isTransitive = false

View File

@@ -21,9 +21,8 @@ dependencies {
exclude(group = "org.slf4j") exclude(group = "org.slf4j")
} }
// https://mvnrepository.com/artifact/io.lettuce/lettuce-core // https://mvnrepository.com/artifact/io.lettuce/lettuce-core
implementation("io.lettuce:lettuce-core:6.3.1.RELEASE") { implementation("io.lettuce:lettuce-core:6.3.1.RELEASE")
exclude(group = "io.netty") // https://mvnrepository.com/artifact/org.quartz-scheduler/quartz
}
implementation("org.quartz-scheduler:quartz:2.3.2") { implementation("org.quartz-scheduler:quartz:2.3.2") {
isTransitive = false isTransitive = false
} }