31 lines
876 B
Text
31 lines
876 B
Text
load("@rules_jvm_external//:defs.bzl", "artifact")
|
|
load("@rules_java//java:java_library.bzl", "java_library")
|
|
load("@rules_java//java:java_binary.bzl", "java_binary")
|
|
|
|
java_library(
|
|
name = "api",
|
|
srcs = glob(["api/main/**/*.java"]),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//core-lib:core",
|
|
artifact("com.velocitypowered:velocity-api"),
|
|
artifact("de.kentoj.scrow:kencommandapi-velocity"),
|
|
],
|
|
exports = [
|
|
"//core-lib:core",
|
|
artifact("de.kentoj.scrow:kencommandapi-velocity"),
|
|
artifact("org.mongodb:bson"),
|
|
],
|
|
)
|
|
|
|
java_binary(
|
|
name = "plugin",
|
|
srcs = glob(["plugin/main/**/*.java"]),
|
|
create_executable = False,
|
|
deps = [
|
|
":api",
|
|
artifact("com.velocitypowered:velocity-api"),
|
|
artifact("com.google.inject:guice"),
|
|
artifact("io.nats:jnats"),
|
|
],
|
|
)
|