GeezerVison is showing github.com — Internal change · bazelbuild/rules_java@6551a25
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: java/BUILD +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,6 +38,7 @@ bzl_library( | 38 | 38 | ], | 39 | 39 | visibility = ["//visibility:public"], | 40 | 40 | deps = [ | | 41 | + "//java/bazel/rules", | 41 | 42 | "//java/common", | 42 | 43 | "//java/private", | 43 | 44 | ], | @@ -64,6 +65,7 @@ filegroup( | 64 | 65 | ":core_rules", | 65 | 66 | ":java_single_jar", | 66 | 67 | ":rules", | | 68 | + "//java/bazel/rules:for_bazel_tests", | 67 | 69 | "//java/common:for_bazel_tests", | 68 | 70 | "//java/private:for_bazel_tests", | 69 | 71 | ], | |
Collapse file Copy file name to clipboard +30Lines changed: 30 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 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 | +) |
Collapse file Copy file name to clipboard +14Lines changed: 14 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 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""" |
Collapse file Copy file name to clipboardExpand all lines: java/java_binary.bzl +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2023 The Bazel Authors. All rights reserved. | | 1 | +# Copyright 2024 The Bazel Authors. All rights reserved. | 2 | 2 | # | 3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | 4 | # you may not use this file except in compliance with the License. | | 13 | 13 | # limitations under the License. | 14 | 14 | """java_binary rule""" | 15 | 15 |
| 16 | | -# Do not touch: This line marks the end of loads; needed for PR importing. | 17 | | - | 18 | 16 | def java_binary(**attrs): | 19 | 17 | """Bazel java_binary rule. | 20 | 18 |
| |
Collapse file Copy file name to clipboardExpand all lines: java/java_import.bzl +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2023 The Bazel Authors. All rights reserved. | | 1 | +# Copyright 2024 The Bazel Authors. All rights reserved. | 2 | 2 | # | 3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | 4 | # you may not use this file except in compliance with the License. | |
Collapse file Copy file name to clipboardExpand all lines: java/java_library.bzl +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2023 The Bazel Authors. All rights reserved. | | 1 | +# Copyright 2024 The Bazel Authors. All rights reserved. | 2 | 2 | # | 3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | 4 | # you may not use this file except in compliance with the License. | | 13 | 13 | # limitations under the License. | 14 | 14 | """java_library rule""" | 15 | 15 |
| 16 | | -# Do not touch: This line marks the end of loads; needed for PR importing. | 17 | | - | 18 | 16 | def java_library(**attrs): | 19 | 17 | """Bazel java_library rule. | 20 | 18 |
| |
Collapse file Copy file name to clipboardExpand all lines: java/java_plugin.bzl +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2023 The Bazel Authors. All rights reserved. | | 1 | +# Copyright 2024 The Bazel Authors. All rights reserved. | 2 | 2 | # | 3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | 4 | # you may not use this file except in compliance with the License. | |
Collapse file Copy file name to clipboardExpand all lines: java/java_test.bzl +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -# Copyright 2023 The Bazel Authors. All rights reserved. | | 1 | +# Copyright 2024 The Bazel Authors. All rights reserved. | 2 | 2 | # | 3 | 3 | # Licensed under the Apache License, Version 2.0 (the "License"); | 4 | 4 | # you may not use this file except in compliance with the License. | | 13 | 13 | # limitations under the License. | 14 | 14 | """java_test rule""" | 15 | 15 |
| 16 | | -# Do not touch: This line marks the end of loads; needed for PR importing. | 17 | | - | 18 | 16 | def java_test(**attrs): | 19 | 17 | """Bazel java_test rule. | 20 | 18 |
| |
|