{erl_opts, [debug_info,
            warn_missing_spec,
            {i, [".", "include"]}
           ]}.

{require_min_otp_vsn, "27"}.

{deps, [
        {exml, "~> 4.2", {pkg, hexml}},
        {meck, "~> 1.2"},
        {bbmustache, "~> 1.12"},
        {uuid, "~> 2.0", {pkg, uuid_erl}},
        {gun, "~> 2.4"},
        {worker_pool, "~> 6.5"},
        {fast_scram, "~> 0.7"}
]}.

{dialyzer, [
    {warnings, [unknown]},
    {plt_extra_apps, [common_test, exml, uuid, worker_pool, fast_scram]}]}.

{hex, [{doc, edoc}]}.

%% To override the plugin as installed by worker_pool
{project_plugins,
 [rebar3_hex, {rebar3_codecov, "0.7.0"}]}.

{overrides, [
    {override, gun, [{deps, [{cowlib, "~> 2.17"}]}]}
]}.

{relx, [{release, {escalus, git},
         [escalus]},
        {dev_mode, true},
        {sys_config, "./sys.config"},
        {include_erts, false}
       ]}.
{edoc_opts, [{preprocess, true}]}.
{eunit_compile_opts, [{d,'EUNIT_TEST',true}]}.
{ct_opts, [{config, "test/test.config"}]}.
{dist_node, [
             {setcookie, 'ejabberd'},
             {sname, 'rebar3ct'}
            ]}.
