Skip to content

Commit

Permalink
Pin bazelversion and certain dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
l46kok committed Oct 7, 2024
1 parent 021154a commit c7a2e18
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 40 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# Enable Bzlmod for every Bazel command
common --enable_bzlmod

# Remove after https://github.com/bazelbuild/rules_jvm_external/issues/1048 is fixed
build --host_cxxopt=-std=c++14
2 changes: 2 additions & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
6.5.0
# Pinned until https://github.com/bazelbuild/rules_jvm_external/issues/1048 is fixed
13 changes: 10 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,21 @@ module(
)

bazel_dep(name = "bazel_skylib", version = "1.4.2")
bazel_dep(name = "rules_jvm_external", version = "6.0")
bazel_dep(name = "rules_jvm_external", version = "5.3")
bazel_dep(name = "protobuf", repo_name="com_google_protobuf", version = "23.1")
bazel_dep(name = "googleapis", repo_name="com_google_googleapis", version = "0.0.0-20240326-1c8d509c5")
bazel_dep(name = "rules_pkg", version = "0.7.0")
bazel_dep(name = "rules_pkg", version = "0.10.1")
bazel_dep(name = "rules_license", version = "0.0.8")
bazel_dep(name = "rules_java", version = "7.4.0")
bazel_dep(name = "rules_java", version = "7.2.0")
bazel_dep(name = "cel-spec", repo_name="cel_spec", version = "0.14.0")

# The following versions need to be pinned until https://github.com/bazelbuild/rules_jvm_external/issues/1048 is fixed

single_version_override(
module_name = "rules_jvm_external",
version = "5.3"
)

switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules")
switched_rules.use_languages(java = True)
use_repo(switched_rules, "com_google_googleapis_imports")
Expand Down
Loading

0 comments on commit c7a2e18

Please sign in to comment.