Internal change · fmeum/rules_java@6551a25 · GitHub
Skip to content

Commit 6551a25

Browse files
hvadehracopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 651391344 Change-Id: I73b926abba494cfca6ea427f45131454a7d1027f
1 parent 2970e68 commit 6551a25

8 files changed

Lines changed: 51 additions & 11 deletions

File tree

java/BUILD

Lines changed: 2 additions & 0 deletions

java/bazel/rules/BUILD.bazel

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
15+
16+
bzl_library(
17+
name = "rules",
18+
srcs = glob(["*.bzl"]),
19+
visibility = ["//java:__pkg__"],
20+
)
21+
22+
filegroup(
23+
name = "for_bazel_tests",
24+
testonly = 1,
25+
srcs = [
26+
"BUILD.bazel",
27+
":rules",
28+
],
29+
visibility = ["//java:__pkg__"],
30+
)

java/bazel/rules/empty.bzl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
"""Empty file as a placeholder for migration"""

java/java_binary.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Bazel Authors. All rights reserved.
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,8 +13,6 @@
1313
# limitations under the License.
1414
"""java_binary rule"""
1515

16-
# Do not touch: This line marks the end of loads; needed for PR importing.
17-
1816
def java_binary(**attrs):
1917
"""Bazel java_binary rule.
2018

java/java_import.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Bazel Authors. All rights reserved.
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

java/java_library.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Bazel Authors. All rights reserved.
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -13,8 +13,6 @@
1313
# limitations under the License.
1414
"""java_library rule"""
1515

16-
# Do not touch: This line marks the end of loads; needed for PR importing.
17-
1816
def java_library(**attrs):
1917
"""Bazel java_library rule.
2018

java/java_plugin.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 The Bazel Authors. All rights reserved.
1+
# Copyright 2024 The Bazel Authors. All rights reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

java/java_test.bzl

Lines changed: 1 addition & 3 deletions

0 commit comments

Comments
 (0)