22 lines
No EOL
591 B
Text
22 lines
No EOL
591 B
Text
load("@rules_jvm_external//:defs.bzl", "artifact")
|
|
load("@rules_java//java:java_binary.bzl", "java_binary")
|
|
|
|
java_binary(
|
|
name = "_plugin",
|
|
srcs = glob(["main/java/**/*.java"]),
|
|
create_executable = False,
|
|
resources = glob(["main/resources/**"]),
|
|
resource_strip_prefix = "buildserver/configurator/main/resources",
|
|
deps = [
|
|
"//core/bukkit:api",
|
|
artifact("io.papermc.paper:paper-api"),
|
|
],
|
|
)
|
|
|
|
genrule(
|
|
name = "plugin",
|
|
srcs = [":_plugin_deploy.jar"],
|
|
outs = ["plugin.jar"],
|
|
cmd = "cp $< $@",
|
|
visibility = ["//visibility:public"],
|
|
) |