Rollforward of https://github.com/rules_java/bazel/commit/befbd4f6b4bb258c07eddf8009b2fcf93ca5e943: Restructure rules_java BEGIN_PUBLIC Restructure rules_java Design doc: https://docs.google.com/document/d/1L1JFgjpZ7SrBinb24DC_5nTIELeYDacikcme-YcA7xs/edit NEW: fixed bzl_libraries END_PUBLIC Automated rollback of commit ddaf86494a4699971c896f1b360354f8b33be48c. *** Reason for rollback *** rollforward *** Original change description *** Automated rollback of commit befbd4f6b4bb258c07eddf8009b2fcf93ca5e943. *** Reason for rollback *** postsubmit breakage: [] *** Original change description *** Restructure rules_java BEGIN_PUBLIC Restructure rules_java Design doc: https://docs.google.com/document/d/1L1JFgjpZ7SrBinb24DC_5nTIELeYDacikcme-YcA7xs/edit END_ *** PiperOrigin-RevId: 605710436 Change-Id: I4e5f2c3fe0343cf2c77dc532b97049f2686907a5
diff --git a/java/java_library.bzl b/java/java_library.bzl new file mode 100644 index 0000000..3bc0a53 --- /dev/null +++ b/java/java_library.bzl
@@ -0,0 +1,30 @@ +# Copyright 2023 The Bazel Authors. All rights reserved. +# +# 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. +"""java_library rule""" + +load("//java/private:add_tags.bzl", "add_tags") + +# Do not touch: This line marks the end of loads; needed for PR importing. + +def java_library(**attrs): + """Bazel java_library rule. + + https://docs.bazel.build/versions/master/be/java.html#java_library + + Args: + **attrs: Rule attributes + """ + + # buildifier: disable=native-java + native.java_library(**add_tags(attrs))