aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ostrovsky <david@ostrovsky.org>2024-04-28 19:17:41 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-04-28 19:40:29 +0200
commit4f735ec3eb36378cc2a283b0d953244af33b9eb6 (patch)
treede0ad441c39d64a6c68716155247b5ee3dbaa5b5
parent567315af548017cc58eadb91bba493b74c391009 (diff)
downloadjgit-4f735ec3eb36378cc2a283b0d953244af33b9eb6.tar.gz
jgit-4f735ec3eb36378cc2a283b0d953244af33b9eb6.zip
Bump Bazel version to 7.1.1
In Bazel 7.x release line, the bzlmod feature is activated per default, so that we need to disable it. See this issue for more details: [1]. Test plan: $> bazel test //... [1] https://github.com/bazelbuild/bazel/issues/18958 Change-Id: I2526d93020c5d82314a09206907ebeed6f1a1700
-rw-r--r--.bazelrc4
-rw-r--r--.bazelversion2
-rw-r--r--MODULE.bazel2
3 files changed, 7 insertions, 1 deletions
diff --git a/.bazelrc b/.bazelrc
index 5e1df6291d..8324680c96 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -1,3 +1,7 @@
+# TODO(davido): Migrate all dependencies from WORKSPACE to MODULE.bazel
+# https://issues.gerritcodereview.com/issues/303819949
+common --noenable_bzlmod
+
build --workspace_status_command="python ./tools/workspace_status.py"
build --repository_cache=~/.gerritcodereview/bazel-cache/repository
build --experimental_strict_action_env
diff --git a/.bazelversion b/.bazelversion
index 91e4a9f262..21c8c7b46b 100644
--- a/.bazelversion
+++ b/.bazelversion
@@ -1 +1 @@
-6.3.2
+7.1.1
diff --git a/MODULE.bazel b/MODULE.bazel
new file mode 100644
index 0000000000..0b932b8d8c
--- /dev/null
+++ b/MODULE.bazel
@@ -0,0 +1,2 @@
+# TODO(davido): Migrate all dependencies from WORKSPACE to MODULE.bazel
+# https://issues.gerritcodereview.com/issues/303819949