diff options
author | Ulises Mendez Martinez <umendez@google.com> | 2023-04-20 19:33:17 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-04-20 19:33:17 +0000 |
commit | 8179e8b2048d8b8e908f38221a83ce10bf0e7e82 (patch) | |
tree | 9fc58758036545a844bd37390f2976322c6aceb8 | |
parent | ef38af2f776ca015e7466aae5f0f2a57288dde0b (diff) | |
parent | 31ceaa821a919d3b931588ac7ec17fed72184d50 (diff) | |
download | bazel_common_rules-8179e8b2048d8b8e908f38221a83ce10bf0e7e82.tar.gz |
Move rules_java to bazel_common_rules am: 31ceaa821a
Original change: https://android-review.googlesource.com/c/platform/build/bazel_common_rules/+/2546691
Change-Id: I4a6be53eaa286e0df41fe0d9aa3ad080ac091aeb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | rules/java/rules_java/BUILD | 0 | ||||
-rw-r--r-- | rules/java/rules_java/WORKSPACE | 0 | ||||
-rw-r--r-- | rules/java/rules_java/java/BUILD | 23 | ||||
-rw-r--r-- | rules/java/rules_java/java/defs.bzl | 47 |
4 files changed, 70 insertions, 0 deletions
diff --git a/rules/java/rules_java/BUILD b/rules/java/rules_java/BUILD new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rules/java/rules_java/BUILD diff --git a/rules/java/rules_java/WORKSPACE b/rules/java/rules_java/WORKSPACE new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rules/java/rules_java/WORKSPACE diff --git a/rules/java/rules_java/java/BUILD b/rules/java/rules_java/java/BUILD new file mode 100644 index 0000000..e7d4265 --- /dev/null +++ b/rules/java/rules_java/java/BUILD @@ -0,0 +1,23 @@ +""" +Copyright (C) 2023 The Android Open Source Project + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" + +load("@bazel_skylib//:bzl_library.bzl", "bzl_library") + +bzl_library( + name = "rules", + srcs = ["defs.bzl"], + visibility = ["//visibility:public"], +) diff --git a/rules/java/rules_java/java/defs.bzl b/rules/java/rules_java/java/defs.bzl new file mode 100644 index 0000000..33d1ab3 --- /dev/null +++ b/rules/java/rules_java/java/defs.bzl @@ -0,0 +1,47 @@ +# Copyright (C) 2023 The Android Open Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +""" +Helper macros to forward to native equivalents. +""" + +def java_binary(**attrs): + native.java_binary(**attrs) + +def java_import(**attrs): + native.java_import(**attrs) + +def java_library(**attrs): + native.java_library(**attrs) + +def java_lite_proto_library(**attrs): + native.java_lite_proto_library(**attrs) + +def java_proto_library(**attrs): + native.java_proto_library(**attrs) + +def java_test(**attrs): + native.java_test(**attrs) + +def java_package_configuration(**attrs): + native.java_package_configuration(**attrs) + +def java_plugin(**attrs): + native.java_plugin(**attrs) + +def java_runtime(**attrs): + native.java_runtime(**attrs) + +def java_toolchain(**attrs): + native.java_toolchain(**attrs) |