Skip to content

Commit

Permalink
Bazel DocGen: Restore missing runtime deps.
Browse files Browse the repository at this point in the history
We need these two targets at **runtime** since the documentation generator reads documentation snippets from their sources.

Prior to bcf5b17 they were incorrectly declared as regular deps, and were thus deleted in bcf5b17 since a linter identified them as unused (build) deps. Consequently, any symbols defined in their sources were effectively deleted from the documentation.

PiperOrigin-RevId: 433262861
  • Loading branch information
fweikert authored and copybara-github committed Mar 8, 2022
1 parent e285322 commit 9c45e9e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/com/google/devtools/build/docgen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ java_library(
name = "docgen_javalib",
srcs = glob(["**/*.java"]),
resources = [":template_files"],
runtime_deps = [
"//src/main/java/com/google/devtools/build/lib/bazel:main",
],
deps = [
"//src/main/java/com/google/devtools/build/docgen/annot",
"//src/main/java/com/google/devtools/build/lib/analysis:analysis_cluster",
Expand Down Expand Up @@ -67,7 +70,10 @@ java_binary(
name = "api_exporter",
srcs = ["ApiExporter.java"],
main_class = "com.google.devtools.build.docgen.ApiExporter",
runtime_deps = ["//src/main/java/com/google/devtools/build/lib/bazel/repository"],
runtime_deps = [
"//src/main/java/com/google/devtools/build/lib/bazel/repository",
"//src/main/java/net/starlark/java/syntax",
],
deps = [
":docgen_javalib",
"//src/main/java/com/google/devtools/common/options",
Expand Down

0 comments on commit 9c45e9e

Please sign in to comment.