rebar.config 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. %% -*- mode: erlang -*-
  2. {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,
  3. warn_obsolete_guard,compressed]}.
  4. {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
  5. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
  6. %% Deps here may duplicate with emqx.git root level rebar.config
  7. %% but there not be any descrpancy.
  8. %% This rebar.config is necessary because the app may be used as a
  9. %% `git_subdir` dependency in other projects.
  10. {deps,
  11. [ {lc, {git, "https://github.com/qzhuyan/lc.git", {tag, "0.1.2"}}}
  12. , {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
  13. , {typerefl, {git, "https://github.com/k32/typerefl", {tag, "0.8.6"}}}
  14. , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
  15. , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.0"}}}
  16. , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.9.0"}}}
  17. , {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.11.2"}}}
  18. , {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.8.0"}}}
  19. , {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.22.2"}}}
  20. , {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}}
  21. , {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}}
  22. , {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "0.16.0"}}}
  23. ]}.
  24. {plugins, [{rebar3_proper, "0.12.1"}]}.
  25. {extra_src_dirs, [{"etc", [recursive]}]}.
  26. {profiles, [
  27. {test,
  28. [{deps,
  29. [ {meck, "0.9.2"}
  30. , {proper, "1.4.0"}
  31. , {bbmustache,"1.10.0"}
  32. , {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.4.3"}}}
  33. ]},
  34. {extra_src_dirs, [{"test",[recursive]}]}
  35. ]}
  36. ]}.
  37. {dialyzer, [
  38. {warnings, [unmatched_returns, error_handling, race_conditions]},
  39. {plt_location, "."},
  40. {plt_prefix, "emqx_dialyzer"},
  41. {plt_apps, all_apps},
  42. {plt_extra_apps, [hocon]},
  43. {statistics, true}
  44. ]
  45. }.