Allow using the 0.17 version of bazel

Change-Id: Ifb39bf7c970b3662fbb7a5c584b43b31b15a0bf9
(cherry picked from commit f381442fa36a59c4515e2671025322e46e647594)
diff --git a/.bazelrc b/.bazelrc
index 9fec823..3a1c95b 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -1,4 +1,12 @@
 build --nouse_ijars
 build --experimental_strict_action_env
+test --test_summary=terse
+test --test_output=errors
+test --test_verbose_timeout_warnings
+build --host_javabase=@local_jdk//:jdk
+build --javabase=@local_jdk//:jdk
+build --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
+build --host_javabase=@local_jdk//:jdk
+build --distinct_host_configuration=false
 #build --disk_cache=~/bazel-cache
 #build --remote_http_cache=http://10.1.10.224:80/cache
diff --git a/tools/build/bazel/bazel_version.bzl b/tools/build/bazel/bazel_version.bzl
index cd175b0..5f880e3 100644
--- a/tools/build/bazel/bazel_version.bzl
+++ b/tools/build/bazel/bazel_version.bzl
@@ -21,6 +21,7 @@
         print("\nBazel is not a release version; please use 0.15.* official release!\n\n")
         return
 
-    if not native.bazel_version.startswith("0.15."):
-        fail("\nBazel version %s is not supported; please use 0.15.* official release!\n\n" %
+    versions = native.bazel_version.split(".")
+    if not int(versions[1]) >= 15:
+        fail("\nBazel version %s is not supported; please use 0.17.* official release!\n\n" %
              native.bazel_version)