bazeling real hard today
This commit is contained in:
parent
5cb75791e7
commit
80d9b07f0c
45 changed files with 426 additions and 718 deletions
23
core-lib/BUILD
Normal file
23
core-lib/BUILD
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
load("@rules_jvm_external//:defs.bzl", "artifact")
|
||||
load("@rules_java//java:java_library.bzl", "java_library")
|
||||
|
||||
shared_deps = [
|
||||
"//third_party:common_deps",
|
||||
artifact("de.kentoj.scrow:kencommandapi-core"),
|
||||
artifact("net.kyori:adventure-api"),
|
||||
artifact("net.kyori:adventure-text-minimessage"),
|
||||
artifact("org.jdbi:jdbi3-core"),
|
||||
artifact("org.mongodb:bson"),
|
||||
]
|
||||
|
||||
java_library(
|
||||
name = "core",
|
||||
srcs = glob(["src/main/**/*.java"]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = shared_deps + [
|
||||
artifact("org.jdbi:jdbi3-postgres"),
|
||||
artifact("io.nats:jnats"),
|
||||
],
|
||||
exports = shared_deps,
|
||||
plugins = [ "//third_party:lombok_plugin" ],
|
||||
)
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
package de.kentoj.scrowlib.instancemanager;
|
||||
|
||||
import org.jspecify.annotations.Nullable;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -14,12 +14,14 @@ public interface InstanceManager {
|
|||
|
||||
/**
|
||||
* Runs blocking.
|
||||
*
|
||||
* @return if the instance was found
|
||||
*/
|
||||
boolean destroyInstance(String handle);
|
||||
|
||||
/**
|
||||
* Runs blocking.
|
||||
*
|
||||
* @return list of running instances
|
||||
*/
|
||||
List<ServerInstance> getInstances();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import de.kentoj.scrowlib.messaging.MessageBroker;
|
|||
import de.kentoj.scrowlib.messaging.RemoteException;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.bson.Document;
|
||||
import org.jspecify.annotations.Nullable;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import org.bson.Document;
|
|||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Future;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface SyncRequestHandler extends RequestHandler {
|
||||
Document handleSync(Document doc);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue