rebar.config 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,
  2. warn_obsolete_guard,compressed]}.
  3. {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
  4. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
  5. %% Deps here may duplicate with emqx.git root level rebar.config
  6. %% but there not be any descrpancy.
  7. %% This rebar.config is necessary because the app may be used as a
  8. %% `git_subdir` dependency in other projects.
  9. {deps,
  10. [ {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
  11. , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
  12. , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.8.2"}}}
  13. , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.0"}}}
  14. , {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.10.0"}}}
  15. , {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.1"}}}
  16. , {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v4.0.1"}}} %% todo delete when plugins use hocon
  17. , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.5.1"}}}
  18. , {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {branch, "2.0.4"}}}
  19. , {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}}
  20. , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.13.0"}}}
  21. ]}.
  22. {plugins, [rebar3_proper]}.
  23. {extra_src_dirs, [{"etc", [recursive]}]}.
  24. {profiles, [
  25. {test,
  26. [{deps,
  27. [ meck
  28. , {bbmustache,"1.10.0"}
  29. , {emqx_ct_helpers, {git,"https://github.com/zmstone/emqx-ct-helpers", {branch,"hocon"}}}
  30. , {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.2.3.1"}}}
  31. ]},
  32. {extra_src_dirs, [{"test",[recursive]}]}
  33. ]}
  34. ]}.
  35. {dialyzer, [
  36. {warnings, [unmatched_returns, error_handling, race_conditions]},
  37. {plt_location, "."},
  38. {plt_prefix, "emqx_dialyzer"},
  39. {plt_apps, all_apps},
  40. {plt_extra_apps, [hocon]},
  41. {statistics, true}
  42. ]
  43. }.