Skip to content

Commit

Permalink
[7.1.0] Harmonize BUILD files. (#21145)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 601430837
Change-Id: Ie7739e2e4aead81a8a3ab7d9eedf47294ed9f855
  • Loading branch information
tjgq authored Jan 30, 2024
1 parent 5aa69ed commit 9758e13
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 12 deletions.
7 changes: 6 additions & 1 deletion src/tools/execlog/BUILD
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
load("@rules_java//java:defs.bzl", "java_binary")

package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//:__pkg__"],
)

filegroup(
name = "srcs",
srcs = glob(["**"]) + [
"//src/tools/execlog/src/main/java/com/google/devtools/build/execlog:srcs",
"//src/tools/execlog/test/main/java/com/google/devtools/build/execlog:srcs",
],
visibility = ["//src:__pkg__"],
visibility = ["//src:__subpackages__"],
)

java_binary(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
load("@rules_java//java:defs.bzl", "java_library")

package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//:__subpackages__"],
)

filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["//src/tools/execlog:__pkg__"],
visibility = ["//src:__subpackages__"],
)

java_library(
name = "parser",
srcs = glob(["*.java"]),
visibility = ["//src/tools/execlog:__subpackages__"],
deps = [
"//src/main/java/com/google/devtools/common/options",
"//src/main/protobuf:spawn_java_proto",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
load("@rules_java//java:defs.bzl", "java_test")

package(
default_applicable_licenses = ["//:license"],
default_testonly = 1,
default_visibility = ["//src:__subpackages__"],
default_visibility = [
"//javatests/com/google/devtools/build/lib:__subpackages__",
"//src/test/java/com/google/devtools/build/lib:__subpackages__",
],
)

filegroup(
name = "srcs",
testonly = 0,
srcs = glob(
["**"],
exclude = [
"*~",
],
),
visibility = ["//src/tools/execlog:__pkg__"],
srcs = glob(["**"]),
visibility = ["//src:__subpackages__"],
)

java_test(
Expand Down
7 changes: 6 additions & 1 deletion src/tools/workspacelog/BUILD
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
load("@rules_java//java:defs.bzl", "java_binary")

package(
default_applicable_licenses = ["//:license"],
default_visibility = ["//:__pkg__"],
)

filegroup(
name = "srcs",
srcs = glob(["**"]) + [
"//src/tools/workspacelog/src/main/java/com/google/devtools/build/workspacelog:srcs",
"//src/tools/workspacelog/test/main/java/com/google/devtools/build/workspacelog:srcs",
],
visibility = ["//src:__pkg__"],
visibility = ["//src:__subpackages__"],
)

java_binary(
Expand Down

0 comments on commit 9758e13

Please sign in to comment.