rebar.config 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. %% This config file is the very basic config to compile emqx
  2. %% This allows emqx to be used as a dependency for other applications
  3. %% such as emqx module/plugin develpments and tests.
  4. %% With the help of EMQ's rebar3 fork, the config is extended
  5. %% with rebar.config.erl module. Final result is written to
  6. %% rebar.config.rendered if environment DEBUG is set.
  7. {edoc_opts, [{preprocess,true}]}.
  8. {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,
  9. warn_obsolete_guard,compressed,
  10. {d, snk_kind, msg}]}.
  11. {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
  12. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
  13. {dialyzer, [
  14. {warnings, [unmatched_returns, error_handling, race_conditions]},
  15. {plt_location, "."},
  16. {plt_prefix, "emqx_dialyzer"},
  17. {plt_apps, all_apps},
  18. {statistics, true}
  19. ]
  20. }.
  21. {cover_opts, [verbose]}.
  22. {cover_export_enabled, true}.
  23. {cover_excl_mods, [emqx_exproto_pb, emqx_exhook_pb]}.
  24. {provider_hooks, [{pre, [{release, {relup_helper, gen_appups}}]}]}.
  25. {post_hooks,[]}.
  26. {deps,
  27. [ {gpb, "4.11.2"} %% gpb only used to build, but not for release, pin it here to avoid fetching a wrong version due to rebar plugins scattered in all the deps
  28. , {ehttpc, {git, "https://github.com/emqx/ehttpc", {tag, "0.1.6"}}}
  29. , {eredis_cluster, {git, "https://github.com/emqx/eredis_cluster", {tag, "0.6.5"}}}
  30. , {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
  31. , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
  32. , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.8.2"}}}
  33. , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.0"}}}
  34. , {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.10.0"}}}
  35. , {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.1"}}}
  36. , {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v4.0.1"}}} % TODO: delete when all apps moved to hocon
  37. , {minirest, {git, "https://github.com/emqx/minirest", {tag, "0.3.5"}}}
  38. , {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.1"}}}
  39. , {replayq, {git, "https://github.com/emqx/replayq", {tag, "0.3.2"}}}
  40. , {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {branch, "2.0.4"}}}
  41. , {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.2.3.1"}}}
  42. , {rulesql, {git, "https://github.com/emqx/rulesql", {tag, "0.1.2"}}}
  43. , {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}}
  44. , {observer_cli, "1.6.1"} % NOTE: depends on recon 2.5.1
  45. , {getopt, "1.0.1"}
  46. , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}}
  47. , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.5.1"}}}
  48. , {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.2.1"}}}
  49. ]}.
  50. {xref_ignores,
  51. [ %% schema registry is for enterprise
  52. {emqx_schema_registry,get_all_schemas,0},
  53. {emqx_schema_api,format_schema,1},
  54. {emqx_schema_api,make_schema_params,1},
  55. {emqx_schema_parser,decode,3},
  56. {emqx_schema_parser,encode,3},
  57. {emqx_schema_registry,add_schema,1},
  58. emqx_exhook_pb, % generated code for protobuf
  59. emqx_exproto_pb % generated code for protobuf
  60. ]}.