feat: 使用 redission 作为消息中间件

This commit is contained in:
2023-08-20 22:17:32 +08:00
parent fa7f07657f
commit b8d35f3fce
39 changed files with 435 additions and 1380 deletions

View File

@@ -0,0 +1,25 @@
@file:Suppress("VulnerableLibrariesLocal")
dependencies {
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compileOnly("com.google.code.gson:gson:2.8.0")
// https://mvnrepository.com/artifact/io.netty/netty-all
compileOnly("io.netty:netty-all:4.1.86.Final")
val hamsterCoreVersion = property("hamster_core_version")
compileOnly("cn.hamster3.mc.plugin:core-common:${hamsterCoreVersion}")
val redissionVersion = property("redission_version")
implementation("org.redisson:redisson:${redissionVersion}") {
isTransitive = false
exclude(group = "io.netty")
exclude(group = "org.yaml")
exclude(group = "org.slf4j")
}
}
tasks {
withType<Jar>() {
archiveBaseName = "HamsterBall-Common"
}
}