.
This commit is contained in:
parent
e4fd6a8c5f
commit
d3e20606d9
10 changed files with 130 additions and 37 deletions
|
|
@ -29,11 +29,7 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
||||
|
||||
api("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
|
||||
//api("org.spigotmc:spigot-api:1.21.11-R0.1-SNAPSHOT")
|
||||
|
||||
// Source: https://mvnrepository.com/artifact/io.nats/jnats
|
||||
implementation("io.nats:jnats:2.25.2")
|
||||
|
|
@ -53,8 +49,4 @@ publishing {
|
|||
from(components["java"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
package de.kentoj.scrow.bukkit.message;
|
||||
|
||||
import io.nats.client.Message;
|
||||
import io.nats.client.Subscription;
|
||||
import org.bson.Document;
|
||||
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public interface NatsDocumentRepository {
|
||||
|
||||
void publish(String topic, Document document);
|
||||
|
||||
Subscription subscribe(String topic, Consumer<Document> document);
|
||||
|
||||
Message request(String topic, Document document);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue