Split the BES module options into their own target.
This is necessary to let a Google-internal module depend on the options
without introducing a cyclic dependency (because the internal BES extension
already depends on this other module).
RELNOTES: None.
@@ -6,13 +6,25 @@ filegroup(
visibility = ["//src/main/java/com/google/devtools/build/lib:__pkg__"],
)
+java_library(
+ name = "buildeventservice-options",
+ srcs = ["BuildEventServiceOptions.java"],
+ deps = [
+ "//src/main/java/com/google/devtools/common/options",
+ ],
+)
+
java_library(
name = "buildeventservice",
- srcs = glob(["*.java"]),
+ srcs = glob(
+ ["*.java"],
+ exclude = ["BuildEventServiceOptions.java"],
+ ),
visibility = [
"//visibility:public",
],
deps = [
+ ":buildeventservice-options",
"//src/main/java/com/google/devtools/build/lib:events",
"//src/main/java/com/google/devtools/build/lib:io",
"//src/main/java/com/google/devtools/build/lib:runtime",
