Skip to content

Commit

Permalink
Update to latest gazelle (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
illicitonion authored May 8, 2024
1 parent e4f609e commit 3a44864
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bazel_dep(

bazel_dep(
name = "gazelle",
version = "0.34.0",
version = "0.36.0",
repo_name = "bazel_gazelle",
)
bazel_dep(
Expand Down
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ load("//:gazelle_setup.bzl", "contrib_rules_jvm_gazelle_setup")

contrib_rules_jvm_gazelle_setup()

load("@rules_jvm_external//:defs.bzl", "maven_install")
load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS")
load("@rules_jvm_external//:defs.bzl", "maven_install")
load("//third_party:protobuf_version.bzl", "PROTOBUF_JAVA_VERSION")

# This only exists to give us a target to use with `./tools/update-dependencies.sh`.
Expand Down Expand Up @@ -143,8 +143,8 @@ load("@io_bazel_stardoc//:setup.bzl", "stardoc_repositories")

stardoc_repositories()

load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")

go_rules_dependencies()

Expand Down
2 changes: 1 addition & 1 deletion examples/gazelle/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ use_repo(

bazel_dep(
name = "gazelle",
version = "0.34.0",
version = "0.36.0",
)
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary")
load("@contrib_rules_jvm//java:defs.bzl", "java_test_suite")
load("@rules_java//java:defs.bzl", "java_binary")

java_binary(
name = "SomeTestBinary",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

proto_library(
name = "example_hello_proto",
Expand Down
2 changes: 1 addition & 1 deletion java/gazelle/testdata/module_granularity/module1/BUILD.out
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
load("@contrib_rules_jvm//java:defs.bzl", "java_test_suite")
load("@rules_java//java:defs.bzl", "java_binary", "java_library")

# gazelle:java_module_granularity module

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

proto_library(
name = "example_hello_proto",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@rules_java//java:defs.bzl", "java_library", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

# gazelle:java_generate_proto true

Expand Down
2 changes: 1 addition & 1 deletion java/private/checkstyle.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load(":checkstyle_config.bzl", "CheckStyleInfo")
load("@apple_rules_lint//lint:defs.bzl", "LinterInfo")
load("@bazel_skylib//lib:paths.bzl", "paths")
load(":checkstyle_config.bzl", "CheckStyleInfo")

"""
Checkstyle rule implementation
Expand Down
2 changes: 1 addition & 1 deletion java/private/non-module-deps.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("//:repositories.bzl", "io_grpc_grpc_java")

def _non_module_dependencies_impl(mctx):
Expand Down
2 changes: 1 addition & 1 deletion java/private/pmd.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load(":pmd_ruleset.bzl", "PmdInfo")
load("@apple_rules_lint//lint:defs.bzl", "LinterInfo")
load(":pmd_ruleset.bzl", "PmdInfo")

def _pmd_test_impl(ctx):
pmd_info = ctx.attr.ruleset[PmdInfo]
Expand Down
2 changes: 1 addition & 1 deletion java/private/spotbugs.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load(":spotbugs_config.bzl", "SpotBugsInfo")
load("@apple_rules_lint//lint:defs.bzl", "LinterInfo")
load(":spotbugs_config.bzl", "SpotBugsInfo")

"""
Spotbugs integration logic
Expand Down
10 changes: 5 additions & 5 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,16 @@ def contrib_rules_jvm_gazelle_deps():
maybe(
http_archive,
name = "bazel_gazelle",
sha256 = "b7387f72efb59f876e4daae42f1d3912d0d45563eac7cb23d1de0b094ab588cf",
url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz",
sha256 = "75df288c4b31c81eb50f51e2e14f4763cb7548daae126817247064637fd9ea62",
url = "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.36.0/bazel-gazelle-v0.36.0.tar.gz",
)

maybe(
http_archive,
name = "com_github_bazelbuild_buildtools",
sha256 = "05c3c3602d25aeda1e9dbc91d3b66e624c1f9fdadf273e5480b489e744ca7269",
strip_prefix = "buildtools-6.4.0",
url = "https://github.com/bazelbuild/buildtools/archive/refs/tags/v6.4.0.tar.gz",
sha256 = "061472b3e8b589fb42233f0b48798d00cf9dee203bd39502bd294e6b050bc6c2",
strip_prefix = "buildtools-7.1.0",
url = "https://github.com/bazelbuild/buildtools/archive/refs/tags/v7.1.0.tar.gz",
)

maybe(
Expand Down

0 comments on commit 3a44864

Please sign in to comment.