chore: update to Bazel 5.2.0 (#736)

diff --git a/.bazelversion b/.bazelversion
index af8c8ec..91ff572 100644
--- a/.bazelversion
+++ b/.bazelversion
@@ -1 +1 @@
-4.2.2
+5.2.0
diff --git a/examples/build_file_generation/.bazelversion b/examples/build_file_generation/.bazelversion
deleted file mode 100644
index af8c8ec..0000000
--- a/examples/build_file_generation/.bazelversion
+++ /dev/null
@@ -1 +0,0 @@
-4.2.2
diff --git a/version.bzl b/version.bzl
index 8f59f1c..ac1dabb 100644
--- a/version.bzl
+++ b/version.bzl
@@ -18,7 +18,7 @@
 # This version should be updated together with the version of Bazel
 # in .bazelversion.
 # TODO(alexeagle): assert this is the case in a test
-BAZEL_VERSION = "4.2.2"
+BAZEL_VERSION = "5.2.0"
 
 # Versions of Bazel which users should be able to use.
 # Ensures we don't break backwards-compatibility,