Skip to content

Commit

Permalink
Upgrade rules_java
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes committed Oct 10, 2023
1 parent 40936ac commit 66df691
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ register_toolchains("//detekt:default_toolchain")
detekt = use_extension("//detekt:extensions.bzl", "detekt")
use_repo(detekt, "detekt_cli_all")

bazel_dep(name = "rules_java", version = "5.5.0")
bazel_dep(name = "rules_java", version = "6.5.1")
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
bazel_dep(name = "rules_jvm_external", version = "5.3")
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
Expand Down
4 changes: 2 additions & 2 deletions detekt/dependencies.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def rules_detekt_dependencies(detekt = _DEFAULT_DETEKT_VERSION):

# Java

rules_java_version = "5.5.0"
rules_java_sha = "bcfabfb407cb0c8820141310faa102f7fb92cc806b0f0e26a625196101b0b57e"
rules_java_version = "6.5.1"
rules_java_sha = "7b0d9ba216c821ee8697dedc0f9d0a705959ace462a3885fe9ba0347ba950111"

maybe(
repo_rule = http_archive,
Expand Down
3 changes: 1 addition & 2 deletions detekt/toolchains.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Macros for defining toolchains.
See https://docs.bazel.build/versions/master/skylark/deploying.html#registering-toolchains
"""

load("@rules_java//java:repositories.bzl", "remote_jdk19_repos", "rules_java_dependencies", "rules_java_toolchains")
load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains")
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@rules_jvm_external//:specs.bzl", "maven")

Expand All @@ -19,7 +19,6 @@ def rules_detekt_toolchains(toolchain = "@rules_detekt//detekt:default_toolchain
"""

rules_java_dependencies()
remote_jdk19_repos()
rules_java_toolchains()

native.register_toolchains(toolchain)
Expand Down

0 comments on commit 66df691

Please sign in to comment.