Skip to content

Commit

Permalink
Add explicit dependency on rules_java.
Browse files Browse the repository at this point in the history
This is necessary for Bazel 8.
  • Loading branch information
phst committed Dec 10, 2024
1 parent 60525a5 commit ea4395e
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 8 deletions.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_cc", version = "0.1.0")
bazel_dep(name = "rules_java", version = "8.6.2")
bazel_dep(name = "rules_python", version = "1.0.0")
bazel_dep(name = "abseil-cpp", version = "20240116.2", repo_name = "com_google_absl")
bazel_dep(name = "protobuf", version = "29.1", repo_name = "com_google_protobuf")
Expand Down
9 changes: 5 additions & 4 deletions MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions docs/manual.org
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ rules_cc_dependencies()

rules_cc_toolchains()

load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")

rules_java_dependencies()

load("@rules_python//python:repositories.bzl", "py_repositories")

py_repositories()
Expand Down
8 changes: 8 additions & 0 deletions elisp/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ def rules_elisp_dependencies():
sha256 = "4b12149a041ddfb8306a8fd0e904e39d673552ce82e4296e96fac9cbf0780e59",
strip_prefix = "rules_cc-0.1.0",
)
maybe(
http_archive,
name = "rules_java",
urls = [
"https://github.com/bazelbuild/rules_java/releases/download/8.6.2/rules_java-8.6.2.tar.gz",
],
sha256 = "a64ab04616e76a448c2c2d8165d836f0d2fb0906200d0b7c7376f46dd62e59cc",
)
maybe(
http_archive,
name = "rules_python",
Expand Down
9 changes: 5 additions & 4 deletions examples/ext/MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions examples/ext/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ rules_cc_dependencies()

rules_cc_toolchains()

load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")

rules_java_dependencies()

load("@rules_python//python:repositories.bzl", "py_repositories")

py_repositories()
Expand Down

0 comments on commit ea4395e

Please sign in to comment.