Replace references to old versions of Bazel with 1.0
Change-Id: I2998e0b13ec3f9df4d7ec2a5bccdf46a66d9e065
diff --git a/Dockerfile b/Dockerfile
index 92fc209..47c1897 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,5 +1,5 @@
ARG JDK_VER=11
-ARG BAZEL_VER=0.27.0
+ARG BAZEL_VER=1.0.0
ARG JOBS=2
# First stage is the build environment.
diff --git a/README.md b/README.md
index 2a6803e..3d91143 100644
--- a/README.md
+++ b/README.md
@@ -46,7 +46,7 @@
developed by Google. We suggest downloading and installing Bazel using the
[official instructions](https://docs.bazel.build/versions/master/install.html).
-The minimum required Bazel version is 0.27.0
+The minimum required Bazel version is 1.0.0
1. Clone the code from the ONOS Gerrit repository
```bash
diff --git a/tools/build/bazel/bazel_version.bzl b/tools/build/bazel/bazel_version.bzl
index 5ee5489..aec4384 100644
--- a/tools/build/bazel/bazel_version.bzl
+++ b/tools/build/bazel/bazel_version.bzl
@@ -16,12 +16,12 @@
def check_bazel_version():
if "bazel_version" not in dir(native):
- fail("\nBazel version is too old; please use 0.27.* official release!\n\n")
+ fail("\nBazel version is too old; please use 1.* official release!\n\n")
elif not native.bazel_version:
- print("\nBazel is not a release version; please use 0.27.* official release!\n\n")
+ print("\nBazel is not a release version; please use 1.* official release!\n\n")
return
versions = native.bazel_version.split(".")
if not int(versions[0]) >= 1:
- fail("\nBazel version %s is not supported; please use 1.0.* official release!\n\n" %
+ fail("\nBazel version %s is not supported; please use 1.* official release!\n\n" %
native.bazel_version)
diff --git a/tools/dev/p4vm/root-bootstrap.sh b/tools/dev/p4vm/root-bootstrap.sh
index 9b35809..e1b9449 100755
--- a/tools/dev/p4vm/root-bootstrap.sh
+++ b/tools/dev/p4vm/root-bootstrap.sh
@@ -4,7 +4,7 @@
VM_TYPE=${1:-dev}
-BAZEL_VER="0.27.0"
+BAZEL_VER="1.0.0"
CORRETTO_URL="https://d3pxv6yz143wms.cloudfront.net/8.212.04.2/java-1.8.0-amazon-corretto-jdk_8.212.04-2_amd64.deb"
# Disable automatic updates