Update bazel version to 5.3.1
This matches core stable-3.5 and requires updating bazlets to fix
rules_nodejs dependencies.
Change-Id: I90ea1f10ebb5e6c53390a32e8588272d04268977
diff --git a/.bazelignore b/.bazelignore
new file mode 100644
index 0000000..3c3629e
--- /dev/null
+++ b/.bazelignore
@@ -0,0 +1 @@
+node_modules
diff --git a/.bazelrc b/.bazelrc
index e2feeb4..fb8e4d1 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -1,3 +1,8 @@
+build --java_language_version=11
+build --java_runtime_version=remotejdk_11
+build --tool_java_language_version=11
+build --tool_java_runtime_version=remotejdk_11
+
build --workspace_status_command="python3 ./tools/workspace_status.py"
build --repository_cache=~/.gerritcodereview/bazel-cache/repository
build --action_env=PATH
diff --git a/.bazelversion b/.bazelversion
index af8c8ec..c7cb131 100644
--- a/.bazelversion
+++ b/.bazelversion
@@ -1 +1 @@
-4.2.2
+5.3.1
diff --git a/BUILD b/BUILD
index 035703e..717467e 100644
--- a/BUILD
+++ b/BUILD
@@ -81,12 +81,7 @@
".js",
],
ignore = ".eslintignore",
- plugins = [
- "@npm//eslint-config-google",
- "@npm//eslint-plugin-html",
- "@npm//eslint-plugin-import",
- "@npm//eslint-plugin-jsdoc",
- ],
+ plugins = [],
)
junit_tests(
diff --git a/WORKSPACE b/WORKSPACE
index 9af377a..752b301 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,14 +1,11 @@
workspace(
name = "depends-on",
- managed_directories = {
- "@npm": ["node_modules"],
- },
)
load("//:bazlets.bzl", "load_bazlets")
load_bazlets(
- commit = "00a97f96162f06119021372f24e8a77d196079e1",
+ commit = "b6120a9fa50945d38f0a4d55d5879e3ec465c5e5",
)
load(
@@ -31,11 +28,22 @@
gerrit_polymer()
-load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install")
+load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
+
+build_bazel_rules_nodejs_dependencies()
+
+load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
+
+node_repositories(
+ node_version = "16.13.2",
+ yarn_version = "1.22.17",
+)
yarn_install(
name = "npm",
+ exports_directories_only = False,
frozen_lockfile = False,
package_json = "//:package.json",
+ symlink_node_modules = True,
yarn_lock = "//:yarn.lock",
)
diff --git a/package.json b/package.json
index ba4a00c..d14b1be 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,8 @@
"version": "3.5.0-SNAPSHOT",
"description": "depends-on Plugin",
"dependencies": {
- "@bazel/rollup": "^3.5.0",
- "@bazel/terser": "^3.5.0"
+ "@bazel/rollup": "~5.1.0",
+ "@bazel/terser": "~5.1.0"
},
"devDependencies": {
"eslint": "^7.24.0",
diff --git a/yarn.lock b/yarn.lock
index 3eb2fe6..6c2a1d5 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -23,15 +23,24 @@
chalk "^2.0.0"
js-tokens "^4.0.0"
-"@bazel/rollup@^3.5.0":
- version "3.8.0"
- resolved "https://registry.yarnpkg.com/@bazel/rollup/-/rollup-3.8.0.tgz#850f56176d73e3b7d99a43c7e33df21ecc6ac161"
- integrity sha512-u63ubqYtfQhOu8Km3uYdhKa6qiLSlOKYsWwMP1xGkkXzu1hOiUznN1N7q8gCF1BV2DMy1D5IYkv+Xg4a+LEiBA==
+"@bazel/rollup@~5.1.0":
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/@bazel/rollup/-/rollup-5.1.0.tgz#dc858ddc93c9fdb9cc2e7982e632c939c646ebdc"
+ integrity sha512-wEiWdSyVbsycSirSYjR6FGfPGbRNI7sGNAYmrV0hIzYIi+KqXeTNcwKIRSE9PESP3mb0VWbZmHvXvmrWk6daPQ==
+ dependencies:
+ "@bazel/worker" "5.1.0"
-"@bazel/terser@^3.5.0":
- version "3.8.0"
- resolved "https://registry.yarnpkg.com/@bazel/terser/-/terser-3.8.0.tgz#96d337b62b2ba18e2fe00984cca950cda899d165"
- integrity sha512-c7cGIltFUI7prRocMDZ3qZVERnew81SFheuI5B9RQ3qeqTlJmlV8B8GI9FPG+7Ut69bmwn8es6UyPaH0iBnsQw==
+"@bazel/terser@~5.1.0":
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/@bazel/terser/-/terser-5.1.0.tgz#5c82b93f4d9def8103c16be2dd33900d156fa066"
+ integrity sha512-uE3hTqfkZr4nvlk3jwi0xx6URqqI7r6GGPtDAU02/PVei+O4PfThaov7cwHO+D1FnoLncDqChb9Iolr7Crw/8A==
+
+"@bazel/worker@5.1.0":
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/@bazel/worker/-/worker-5.1.0.tgz#6f1e0f3ef628e3449d424cacd341c9abd09a3735"
+ integrity sha512-u3aU93UtHz3vL6ozezq0jnw83s1cNT4dAnW+vvB7M++YKFlB3CWzZFb0JRJbCp1b6DDe30ML0WOdd3nVYuylpw==
+ dependencies:
+ google-protobuf "^3.6.1"
"@eslint/eslintrc@^0.4.3":
version "0.4.3"
@@ -660,6 +669,11 @@
dependencies:
type-fest "^0.20.2"
+google-protobuf@^3.6.1:
+ version "3.21.2"
+ resolved "https://registry.yarnpkg.com/google-protobuf/-/google-protobuf-3.21.2.tgz#4580a2bea8bbb291ee579d1fefb14d6fa3070ea4"
+ integrity sha512-3MSOYFO5U9mPGikIYCzK0SaThypfGgS6bHqrUGXG3DPHCrb+txNqeEcns1W0lkGfk0rCyNXm7xB9rMxnCiZOoA==
+
graceful-fs@^4.1.2:
version "4.2.8"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a"