rebar.config 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. {minimum_otp_vsn, "21.3"}.
  8. {edoc_opts, [{preprocess,true}]}.
  9. {erl_opts, [warn_unused_vars,warn_shadow_vars,warn_unused_import,
  10. warn_obsolete_guard,compressed]}.
  11. {overrides,[{add,[{erl_opts,[compressed,deterministic]}]}
  12. ,{add,[{extra_src_dirs, [{"etc", [{recursive,true}]}]}]}
  13. ]}.
  14. {extra_src_dirs, [{"etc", [{recursive,true}]}]}.
  15. {xref_checks,[undefined_function_calls,undefined_functions,locals_not_used,
  16. deprecated_function_calls,warnings_as_errors,deprecated_functions]}.
  17. {dialyzer, [
  18. {warnings, [unmatched_returns, error_handling, race_conditions]},
  19. {plt_location, "."},
  20. {plt_prefix, "emqx_dialyzer"},
  21. {plt_apps, all_apps},
  22. {statistics, true}
  23. ]
  24. }.
  25. {cover_enabled, true}.
  26. {cover_opts, [verbose]}.
  27. {cover_export_enabled, true}.
  28. {cover_excl_mods, [emqx_exproto_pb, emqx_exhook_pb]}.
  29. {provider_hooks,[{pre,[{release,{relup_helper,gen_appups}}]}
  30. ]}.
  31. {post_hooks,[]}.
  32. {erl_first_files, ["src/emqx_logger.erl"]}.
  33. {deps,
  34. [ {gproc, {git, "https://github.com/uwiger/gproc", {tag, "0.8.0"}}}
  35. , {jiffy, {git, "https://github.com/emqx/jiffy", {tag, "1.0.5"}}}
  36. , {cowboy, {git, "https://github.com/emqx/cowboy", {tag, "2.7.1"}}}
  37. , {esockd, {git, "https://github.com/emqx/esockd", {tag, "5.8.0"}}}
  38. , {ekka, {git, "https://github.com/emqx/ekka", {tag, "0.8.0"}}}
  39. , {gen_rpc, {git, "https://github.com/emqx/gen_rpc", {tag, "2.5.0"}}}
  40. , {cuttlefish, {git, "https://github.com/emqx/cuttlefish", {tag, "v3.0.0"}}}
  41. , {minirest, {git, "https://github.com/emqx/minirest", {tag, "0.3.3"}}}
  42. , {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "0.5.0"}}}
  43. , {replayq, {git, "https://github.com/emqx/replayq", {tag, "0.3.1"}}}
  44. , {pbkdf2, {git, "https://github.com/emqx/erlang-pbkdf2.git", {branch, "2.0.4"}}}
  45. , {emqtt, {git, "https://github.com/emqx/emqtt", {tag, "1.2.3"}}}
  46. , {rulesql, {git, "https://github.com/emqx/rulesql", {tag, "0.1.2"}}}
  47. , {recon, {git, "https://github.com/ferd/recon", {tag, "2.5.1"}}}
  48. , {getopt, "1.0.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. ]}.