rebar.config 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %% -*- mode: erlang -*-
  2. {erl_opts, [
  3. warn_unused_vars,
  4. warn_shadow_vars,
  5. warn_unused_import,
  6. warn_obsolete_guard,
  7. compressed
  8. ]}.
  9. {xref_checks, [
  10. undefined_function_calls,
  11. undefined_functions,
  12. locals_not_used,
  13. deprecated_function_calls,
  14. warnings_as_errors,
  15. deprecated_functions
  16. ]}.
  17. %% Deps here may duplicate with emqx.git root level rebar.config
  18. %% but there may not be any discrepancy.
  19. %% This rebar.config is necessary because the app may be used as a
  20. %% `git_subdir` dependency in other projects.
  21. {deps, [
  22. {emqx_utils, {path, "../emqx_utils"}},
  23. {emqx_durable_storage, {path, "../emqx_durable_storage"}},
  24. {lc, {git, "https://github.com/emqx/lc.git", {tag, "0.3.2"}}},
  25. {gproc, {git, "https://github.com/emqx/gproc", {tag, "0.9.0.1"}}},
  26. {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.9.2"}}},
  27. {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.11.2"}}},
  28. {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.19.3"}}},
  29. {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "3.3.1"}}},
  30. {hocon, {git, "https://github.com/emqx/hocon.git", {tag, "0.42.2"}}},
  31. {emqx_http_lib, {git, "https://github.com/emqx/emqx_http_lib.git", {tag, "0.5.3"}}},
  32. {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {tag, "2.0.4"}}},
  33. {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}},
  34. {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {tag, "1.0.8"}}},
  35. {ra, "2.7.3"}
  36. ]}.
  37. {plugins, [{rebar3_proper, "0.12.1"}, rebar3_path_deps]}.
  38. {extra_src_dirs, [{"etc", [recursive]}]}.
  39. {profiles, [
  40. {test, [
  41. {deps, [
  42. {meck, "0.9.2"},
  43. {proper, "1.4.0"},
  44. {bbmustache, "1.10.0"},
  45. {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.10.0"}}}
  46. ]},
  47. {extra_src_dirs, [
  48. {"test", [recursive]},
  49. {"integration_test", [recursive]}
  50. ]}
  51. ]},
  52. {standalone_test, [
  53. {deps, [
  54. {meck, "0.9.2"},
  55. {proper, "1.4.0"},
  56. {bbmustache, "1.10.0"},
  57. {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.9.7"}}}
  58. ]},
  59. {extra_src_dirs, [{"test", [recursive]}]}
  60. ]}
  61. ]}.
  62. {dialyzer, [
  63. {warnings, [unmatched_returns, error_handling]},
  64. {plt_location, "."},
  65. {plt_prefix, "emqx_dialyzer"},
  66. {plt_apps, all_apps},
  67. {statistics, true}
  68. ]}.
  69. {project_plugins, [{erlfmt, "1.3.0"}]}.
  70. {erlfmt, [
  71. {files, [
  72. "{src,include,test}/*.{hrl,erl,app.src}",
  73. "rebar.config",
  74. "rebar.config.script"
  75. ]}
  76. ]}.