rebar.config 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. %% -*- mode: erlang; -*-
  2. {erl_opts, [debug_info, {feature, maybe_expr, enable}]}.
  3. {deps, [
  4. %% The following two are dependencies of rabbit_common
  5. {thoas, {git, "https://github.com/emqx/thoas.git", {tag, "v1.0.0"}}},
  6. {credentials_obfuscation,
  7. {git, "https://github.com/emqx/credentials-obfuscation.git", {tag, "v3.2.0"}}},
  8. %% The v3.11.13.2 (v3.11.13_with_app_src branch), employed in the next two dependencies,
  9. %% represents a fork of the official RabbitMQ v3.11.13 tag. This fork diverges
  10. %% from the official version as it includes app and hrl files
  11. %% generated by make files in subdirectories deps/rabbit_common and
  12. %% deps/amqp_client (app files are also relocated from the ebin to the src
  13. %% directory). This modification ensures compatibility with rebar3, as
  14. %% rabbit_common and amqp_client utilize the erlang.mk build tool.
  15. %% Similar changes are probably needed when upgrading to newer versions
  16. %% of rabbit_common and amqp_client. There are hex packages for rabbit_common and
  17. %% amqp_client, but they are not used here as we don't want to depend on
  18. %% packages that we don't have control over.
  19. {rabbit_common,
  20. {git_subdir, "https://github.com/emqx/rabbitmq-server.git", {tag, "v3.11.13.2"},
  21. "deps/rabbit_common"}},
  22. {amqp_client,
  23. {git_subdir, "https://github.com/emqx/rabbitmq-server.git", {tag, "v3.11.13.2"},
  24. "deps/amqp_client"}},
  25. {emqx_connector, {path, "../../apps/emqx_connector"}},
  26. {emqx_resource, {path, "../../apps/emqx_resource"}},
  27. {emqx_bridge, {path, "../../apps/emqx_bridge"}}
  28. ]}.
  29. {shell, [
  30. {apps, [emqx_bridge_rabbitmq]}
  31. ]}.