From 8fdb2596150353d2bdda4e37b1feccaedf369492 Mon Sep 17 00:00:00 2001 From: Draycia Date: Wed, 20 Jul 2022 19:44:09 -0700 Subject: [PATCH] Fix nats/rabbitmq --- build-logic/src/main/kotlin/extensions.kt | 2 ++ common/build.gradle.kts | 2 ++ .../carbon/fabric/mixin/ChatTypeMixin.java | 19 +++++++++++++++++++ gradle/libs.versions.yml | 10 ++++++++++ 4 files changed, 33 insertions(+) diff --git a/build-logic/src/main/kotlin/extensions.kt b/build-logic/src/main/kotlin/extensions.kt index e01a5ab4..3d153173 100644 --- a/build-logic/src/main/kotlin/extensions.kt +++ b/build-logic/src/main/kotlin/extensions.kt @@ -40,6 +40,8 @@ fun ShadowJar.standardRelocations() { relocateDependency("org.antlr") relocateDependency("com.github.luben") //relocateDependency("io.netty") + relocateDependency("io.nats") + relocateDependency("com.rabbitmq") } fun ShadowJar.relocateCloud() { diff --git a/common/build.gradle.kts b/common/build.gradle.kts index da61063d..132f5112 100644 --- a/common/build.gradle.kts +++ b/common/build.gradle.kts @@ -42,5 +42,7 @@ dependencies { api(libs.netty) api(libs.zstdjni) api(libs.jedis) + api(libs.rabbitmq) + api(libs.nats) // TODO: libraries for NATS and RabbitMQ } diff --git a/fabric/src/main/java/net/draycia/carbon/fabric/mixin/ChatTypeMixin.java b/fabric/src/main/java/net/draycia/carbon/fabric/mixin/ChatTypeMixin.java index 1a5ff300..62aed147 100644 --- a/fabric/src/main/java/net/draycia/carbon/fabric/mixin/ChatTypeMixin.java +++ b/fabric/src/main/java/net/draycia/carbon/fabric/mixin/ChatTypeMixin.java @@ -1,3 +1,22 @@ +/* + * CarbonChat + * + * Copyright (c) 2021 Josua Parks (Vicarious) + * Contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ package net.draycia.carbon.fabric.mixin; import net.draycia.carbon.fabric.CarbonChatFabric; diff --git a/gradle/libs.versions.yml b/gradle/libs.versions.yml index 2c41ab84..e9031215 100644 --- a/gradle/libs.versions.yml +++ b/gradle/libs.versions.yml @@ -48,6 +48,8 @@ versions: zstdjni: 1.5.1-1 jedis: 3.7.0 postgresql: 42.3.1 + rabbitmq: 5.13.1 + nats: 2.12.0 dependencies: adventureBom: @@ -251,6 +253,14 @@ dependencies: group: redis.clients name: jedis version: { ref: jedis } + rabbitmq: + group: com.rabbitmq + name: amqp-client + version: { ref: rabbitmq } + nats: + group: io.nats + name: jnats + version: { ref: nats } paperApi: group: io.papermc.paper