Update release binaries. (#121)
diff --git a/.bazelrc b/.bazelrc
new file mode 100644
index 0000000..d4d79d2
--- /dev/null
+++ b/.bazelrc
@@ -0,0 +1,2 @@
+build --java_language_version=11
+build --tool_java_language_version=11
diff --git a/WORKSPACE b/WORKSPACE
index 4fdfcf0..38f48a9 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -14,9 +14,9 @@
# Needed for generating the Stardoc release binary.
git_repository(
name = "io_bazel",
- commit = "cfebb18ad206162c1309962e8d396a5fd0ef234e", # Dec 30, 2020
+ commit = "4e551f5a0c4caae251648104df40ccbb59951264", # Feb 09, 2022
remote = "https://github.com/bazelbuild/bazel.git",
- shallow_since = "1609373204 -0800",
+ shallow_since = "1644438074 -0800",
)
# The following binds are needed for building protobuf java libraries.
diff --git a/stardoc/proto/stardoc_output.proto b/stardoc/proto/stardoc_output.proto
index 8e536fd..658ef85 100644
--- a/stardoc/proto/stardoc_output.proto
+++ b/stardoc/proto/stardoc_output.proto
@@ -41,7 +41,7 @@
// Representation of a Starlark rule attribute type. These generally
// have a one-to-one correspondence with functions defined at
-// https://docs.bazel.build/versions/master/skylark/lib/attr.html.
+// https://docs.bazel.build/versions/main/skylark/lib/attr.html.
enum AttributeType {
UNKNOWN = 0;
// A special case of STRING; all rules have exactly one implicit
@@ -76,7 +76,7 @@
// Representation of a Starlark rule attribute definition, comprised of an
// attribute name, and a schema defined by a call to one of the 'attr' module
// methods enumerated at
-// https://docs.bazel.build/versions/master/skylark/lib/attr.html
+// https://docs.bazel.build/versions/main/skylark/lib/attr.html
message AttributeInfo {
// The name of the attribute.
string name = 1;
diff --git a/stardoc/renderer_binary.jar b/stardoc/renderer_binary.jar
index 015372d..c8bf386 100755
--- a/stardoc/renderer_binary.jar
+++ b/stardoc/renderer_binary.jar
Binary files differ
diff --git a/stardoc/stardoc_binary.jar b/stardoc/stardoc_binary.jar
index ea5b1af..150d501 100755
--- a/stardoc/stardoc_binary.jar
+++ b/stardoc/stardoc_binary.jar
Binary files differ
diff --git a/update-release-binary.sh b/update-release-binary.sh
index 9cd079c..1423fbf 100755
--- a/update-release-binary.sh
+++ b/update-release-binary.sh
@@ -20,7 +20,7 @@
set -eu
echo "** Building Stardoc from source..."
-bazel build @io_bazel//src/main/java/com/google/devtools/build/skydoc:skydoc_deploy.jar
+bazel build --java_language_version=11 @io_bazel//src/main/java/com/google/devtools/build/skydoc:skydoc_deploy.jar
echo "** Copying Stardoc binary..."
cp bazel-bin/external/io_bazel/src/main/java/com/google/devtools/build/skydoc/skydoc_deploy.jar \
@@ -29,7 +29,7 @@
echo "** Stardoc copied."
echo "** Building Renderer from source..."
-bazel build @io_bazel//src/main/java/com/google/devtools/build/skydoc/renderer:renderer_deploy.jar
+bazel build --java_language_version=11 @io_bazel//src/main/java/com/google/devtools/build/skydoc/renderer:renderer_deploy.jar
echo "** Copying Renderer binary..."
cp bazel-bin/external/io_bazel/src/main/java/com/google/devtools/build/skydoc/renderer/renderer_deploy.jar \