diff --git a/BUILD.bazel b/BUILD.bazel index ff37ed991543..bceab3998862 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -53,7 +53,6 @@ exports_files([ # gazelle:exclude deps/gun # gazelle:exclude deps/inet_tcp_proxy # gazelle:exclude deps/jose -# gazelle:exclude deps/json # gazelle:exclude deps/meck # gazelle:exclude deps/observer_cli # gazelle:exclude deps/osiris diff --git a/MODULE.bazel b/MODULE.bazel index 34cb6a19d229..ba4f6f06f9d7 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -267,13 +267,6 @@ erlang_package.git_package( repository = "michaelklishin/erlang-jose", ) -erlang_package.hex_package( - name = "json", - build_file = "@rabbitmq-server//bazel:BUILD.json", - sha256 = "9abf218dbe4ea4fcb875e087d5f904ef263d012ee5ed21d46e9dbca63f053d16", - version = "1.4.1", -) - erlang_package.hex_package( name = "thoas", build_file = "@rabbitmq-server//bazel:BUILD.thoas", @@ -368,7 +361,6 @@ use_repo( "getopt", "gun", "jose", - "json", "observer_cli", "prometheus", "ranch", diff --git a/Makefile b/Makefile index 292b822429bd..e334d6aaad3b 100644 --- a/Makefile +++ b/Makefile @@ -41,8 +41,6 @@ XREF_EXTRA_APP_DIRS = $(filter-out deps/rabbitmq_cli/_build/dev/lib/rabbit_commo # protocols directly. XREF_IGNORE = [ \ {'Elixir.CSV.Encode',impl_for,1}, \ - {'Elixir.JSON.Decoder',impl_for,1}, \ - {'Elixir.JSON.Encoder',impl_for,1}, \ {'Elixir.RabbitMQ.CLI.Core.DataCoercion',impl_for,1}] # Include Elixir libraries in the Xref checks. diff --git a/deps/rabbitmq_cli/BUILD.bazel b/deps/rabbitmq_cli/BUILD.bazel index 35931ebe5f54..d4c0f504ab8a 100644 --- a/deps/rabbitmq_cli/BUILD.bazel +++ b/deps/rabbitmq_cli/BUILD.bazel @@ -17,13 +17,6 @@ mix_archive_build( archives = ["@hex//:archive"], ) -mix_archive_build( - name = "json_ez", - srcs = ["@json//:sources"], - out = "json.ez", - archives = ["@hex//:archive"], -) - # Note: All the various rabbitmq-* scripts are just copies of rabbitmqctl rabbitmqctl( name = "rabbitmqctl", @@ -39,7 +32,6 @@ rabbitmqctl( license_files = glob(["LICENSE*"]), source_deps = { "@csv//:sources": "csv", - "@json//:sources": "json", }, visibility = ["//visibility:public"], deps = [ @@ -109,7 +101,6 @@ plt( ], ez_deps = [ ":csv_ez", - ":json_ez", ], ignore_warnings = True, libs = [":elixir"], @@ -151,7 +142,6 @@ rabbitmqctl_test( source_deps = { "@amqp//:sources": "amqp", "@csv//:sources": "csv", - "@json//:sources": "json", "@temp//:sources": "temp", "@x509//:sources": "x509", }, diff --git a/deps/rabbitmq_cli/mix.exs b/deps/rabbitmq_cli/mix.exs index 708c2e4ff341..2e32e32c92c2 100644 --- a/deps/rabbitmq_cli/mix.exs +++ b/deps/rabbitmq_cli/mix.exs @@ -22,7 +22,6 @@ defmodule RabbitMQCtl.MixfileBase do exclude: [ CSV, CSV.Encode, - JSON, :mnesia, :msacc, :observer_cli, diff --git a/dist.bzl b/dist.bzl index bcd03269a653..dfb36f009f06 100644 --- a/dist.bzl +++ b/dist.bzl @@ -335,15 +335,6 @@ def source_archive( prefix = "deps", ) - pkg_files( - name = "json-files", - srcs = [ - "@json//:sources", - ], - strip_prefix = "", - prefix = "deps/json", - ) - pkg_files( name = "csv-files", srcs = [ @@ -358,7 +349,6 @@ def source_archive( extension = extension, srcs = [ ":deps-files", - ":json-files", ":csv-files", Label("@rabbitmq-server//:root-licenses"), ],