Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 651391344
Change-Id: I73b926abba494cfca6ea427f45131454a7d1027f
  • Loading branch information
hvadehra authored and copybara-github committed Jul 11, 2024
1 parent 2970e68 commit 6551a25
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 11 deletions.
2 changes: 2 additions & 0 deletions java/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ bzl_library(
],
visibility = ["//visibility:public"],
deps = [
"//java/bazel/rules",
"//java/common",
"//java/private",
],
Expand All @@ -64,6 +65,7 @@ filegroup(
":core_rules",
":java_single_jar",
":rules",
"//java/bazel/rules:for_bazel_tests",
"//java/common:for_bazel_tests",
"//java/private:for_bazel_tests",
],
Expand Down
30 changes: 30 additions & 0 deletions java/bazel/rules/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright 2024 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.
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

bzl_library(
name = "rules",
srcs = glob(["*.bzl"]),
visibility = ["//java:__pkg__"],
)

filegroup(
name = "for_bazel_tests",
testonly = 1,
srcs = [
"BUILD.bazel",
":rules",
],
visibility = ["//java:__pkg__"],
)
14 changes: 14 additions & 0 deletions java/bazel/rules/empty.bzl
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024 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.
"""Empty file as a placeholder for migration"""
4 changes: 1 addition & 3 deletions java/java_binary.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 The Bazel Authors. All rights reserved.
# Copyright 2024 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.
Expand All @@ -13,8 +13,6 @@
# limitations under the License.
"""java_binary rule"""

# Do not touch: This line marks the end of loads; needed for PR importing.

def java_binary(**attrs):
"""Bazel java_binary rule.
Expand Down
2 changes: 1 addition & 1 deletion java/java_import.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 The Bazel Authors. All rights reserved.
# Copyright 2024 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.
Expand Down
4 changes: 1 addition & 3 deletions java/java_library.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 The Bazel Authors. All rights reserved.
# Copyright 2024 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.
Expand All @@ -13,8 +13,6 @@
# limitations under the License.
"""java_library rule"""

# Do not touch: This line marks the end of loads; needed for PR importing.

def java_library(**attrs):
"""Bazel java_library rule.
Expand Down
2 changes: 1 addition & 1 deletion java/java_plugin.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 The Bazel Authors. All rights reserved.
# Copyright 2024 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.
Expand Down
4 changes: 1 addition & 3 deletions java/java_test.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2023 The Bazel Authors. All rights reserved.
# Copyright 2024 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.
Expand All @@ -13,8 +13,6 @@
# limitations under the License.
"""java_test rule"""

# Do not touch: This line marks the end of loads; needed for PR importing.

def java_test(**attrs):
"""Bazel java_test rule.
Expand Down

0 comments on commit 6551a25

Please sign in to comment.