diff --git a/java/repositories.bzl b/java/repositories.bzl index bdc5326f..9dc15139 100644 --- a/java/repositories.bzl +++ b/java/repositories.bzl @@ -370,6 +370,16 @@ def bazel_skylib(): sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0", ) +def rules_python(): + maybe( + http_archive, + name = "rules_python", + type = "tar.gz", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.4.0/rules_python-0.4.0.tar.gz", + sha256 = "954aa89b491be4a083304a2cb838019c8b8c3720a7abb9c4cb81ac7a24230cea", + ) + + def rules_java_dependencies(): """An utility method to load all dependencies of rules_java. @@ -384,6 +394,7 @@ def rules_java_dependencies(): remote_jdk17_repos() java_tools_javac11_repos() bazel_skylib() + rules_python() def rules_java_toolchains(name = "toolchains"): """An utility method to load all Java toolchains.