From 1429286ce847dceee203b23f8e660315e54d0b3b Mon Sep 17 00:00:00 2001 From: kento2 Date: Sun, 2 Aug 2026 22:02:19 +0200 Subject: [PATCH] works --- .bazelrc | 3 +- .idea/workspace.xml | 115 +++++++++---------------------------- README.md | 10 ++++ kencommandapi-bukkit/BUILD | 6 +- kencommandapi-core/BUILD | 9 ++- 5 files changed, 45 insertions(+), 98 deletions(-) diff --git a/.bazelrc b/.bazelrc index 36dbde3..e5211ad 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,4 +1,5 @@ build --java_language_version=25 build --java_runtime_version=25 build --tool_java_language_version=25 -build --tool_java_runtime_version=25 \ No newline at end of file +build --tool_java_runtime_version=25 +build --define=maven_repo=https://repo.lab0x13.site/snapshots \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index cf49dca..8778dd5 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -37,49 +37,12 @@ - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -176,6 +140,8 @@ - + - - - - - - - true - true - false - false + + + + @//kencommandapi-bukkit:bukkit.publish + + + + + + + @//kencommandapi-core:export.publish + + @@ -353,28 +311,6 @@ false - - - - - - true - true - false - false - - @@ -388,11 +324,11 @@ - - - - - + + + + + @@ -656,6 +592,7 @@ - \ No newline at end of file diff --git a/README.md b/README.md index ad01ec3..5228ab0 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ +## Build + +after installing bazel: +```shell +bazel build //kencommandapi-bukkit:bukkit +bazel build //kencommandapi-core:core +``` + +can't compile -velocity module yet. + ## Limitations & Bugs - argument's can't require specific permissions. diff --git a/kencommandapi-bukkit/BUILD b/kencommandapi-bukkit/BUILD index c5538ff..1b635ad 100644 --- a/kencommandapi-bukkit/BUILD +++ b/kencommandapi-bukkit/BUILD @@ -1,8 +1,8 @@ -load("@rules_java//java:java_library.bzl", "java_library") -load("@rules_jvm_external//:defs.bzl", "artifact", "java_plugin_artifact") +load("@rules_jvm_external//:defs.bzl", "artifact", "java_export") -java_library( +java_export( name = "bukkit", + maven_coordinates = "de.kentoj.scrow:kencommandapi-bukkit:0.34-SNAPSHOT", srcs = glob(["src/main/**/*.java"]), deps = [ "//kencommandapi-core:core", diff --git a/kencommandapi-core/BUILD b/kencommandapi-core/BUILD index 442972e..816bb49 100644 --- a/kencommandapi-core/BUILD +++ b/kencommandapi-core/BUILD @@ -1,8 +1,8 @@ -load("@rules_java//java:java_library.bzl", "java_library") -load("@rules_jvm_external//:defs.bzl", "artifact", "java_plugin_artifact") +load("@rules_jvm_external//:defs.bzl", "artifact", "java_export") -java_library( +java_export( name = "core", + maven_coordinates = "de.kentoj.scrow:kencommandapi-core:0.34-SNAPSHOT", srcs = glob(["src/main/**/*.java"]), visibility = ["//visibility:public"], deps = [ @@ -15,5 +15,4 @@ java_library( artifact("net.kyori:adventure-api"), ], plugins = [ "//third_party:lombok_plugin" ], -) -load("@rules_java//toolchains:default_java_toolchain.bzl", "default_java_toolchain") \ No newline at end of file +) \ No newline at end of file