Skip to content

Commit fa81df0

Browse files
Merge pull request #11152 from rabbitmq/rin/oauth2_client-not-a-plugin
Avoid oauth2_client being reported as a plugin
2 parents a23a348 + efdb2f2 commit fa81df0

File tree

2 files changed

+14
-28
lines changed

2 files changed

+14
-28
lines changed

deps/oauth2_client/BUILD.bazel

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ load("@rules_erlang//:xref2.bzl", "xref")
33
load("@rules_erlang//:dialyze.bzl", "dialyze", "plt")
44
load(
55
"//:rabbitmq.bzl",
6-
"BROKER_VERSION_REQUIREMENTS_ANY",
76
"RABBITMQ_DIALYZER_OPTS",
87
"assert_suites",
98
"broker_for_integration_suites",
@@ -25,38 +24,19 @@ APP_DESCRIPTION = "OAuth 2.0 client from the RabbitMQ Project"
2524

2625
APP_MODULE = "oauth2_client_app"
2726

28-
APP_EXTRA_KEYS = """%% Hex.pm package informations.
29-
{licenses, ["MPL-2.0"]},
30-
{links, [
31-
{"Website", "https://www.rabbitmq.com/"},
32-
{"GitHub", "https://github.com/rabbitmq/rabbitmq-server/tree/main/deps/oauth2_client"}
33-
]},
34-
{build_tools, ["make", "rebar3"]},
35-
{files, [
36-
"erlang.mk",
37-
"git-revisions.txt",
38-
"include",
39-
"LICENSE*",
40-
"Makefile",
41-
"rabbitmq-components.mk",
42-
"README",
43-
"README.md",
44-
"src"
45-
]}
46-
"""
47-
4827
# gazelle:erlang_app_extra_app ssl
4928
# gazelle:erlang_app_extra_app inets
5029
# gazelle:erlang_app_extra_app crypto
5130
# gazelle:erlang_app_extra_app public_key
5231

32+
# gazelle:erlang_app_dep_exclude rabbit
33+
5334
rabbitmq_app(
5435
name = "erlang_app",
5536
srcs = [":all_srcs"],
5637
hdrs = [":public_hdrs"],
5738
app_description = APP_DESCRIPTION,
58-
app_extra_keys = APP_EXTRA_KEYS,
59-
# app_module = APP_MODULE,
39+
app_module = APP_MODULE,
6040
app_name = APP_NAME,
6141
beam_files = [":beam_files"],
6242
extra_apps = [
@@ -67,14 +47,14 @@ rabbitmq_app(
6747
],
6848
license_files = [":license_files"],
6949
priv = [":priv"],
70-
deps = [
71-
"//deps/rabbit:erlang_app",
72-
"//deps/rabbit_common:erlang_app",
73-
],
50+
deps = ["//deps/rabbit_common:erlang_app"],
7451
)
7552

7653
xref(
7754
name = "xref",
55+
additional_libs = [
56+
"//deps/rabbit:erlang_app", # keep
57+
],
7858
target = ":erlang_app",
7959
)
8060

@@ -83,6 +63,9 @@ plt(
8363
for_target = ":erlang_app",
8464
ignore_warnings = True,
8565
plt = "//:base_plt",
66+
deps = [
67+
"//deps/rabbit:erlang_app", # keep
68+
],
8669
)
8770

8871
dialyze(

deps/oauth2_client/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ PROJECT = oauth2_client
22
PROJECT_DESCRIPTION = OAuth2 client from the RabbitMQ Project
33
PROJECT_MOD = oauth2_client_app
44

5-
DEPS = rabbit rabbit_common
5+
BUILD_DEPS = rabbit
6+
DEPS = rabbit_common
67
TEST_DEPS = rabbitmq_ct_helpers cowboy
78
LOCAL_DEPS = ssl inets crypto public_key
89

10+
PLT_APPS = rabbit
11+
912
DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-test.mk
1013
DEP_PLUGINS = rabbit_common/mk/rabbitmq-macros.mk \
1114
rabbit_common/mk/rabbitmq-build.mk \

0 commit comments

Comments
 (0)