
{deps, [
    {hackney, "~> 1.16.0"},
    {jiffy, "~> 1.0.5"},
    {jwt, "~> 0.1.10"}
]}.

{plugins, [
        rebar3_hex
    ]
}.

%% by default when using the prod profile, include the erlang runtime system
%% (erts) when packaging.  This means you don't need erlang installed as a
%% separate package
{profiles, [
    {prod, [
        {relx, [ { dev_mode, false }, { include_erts, true } ] }
    ]},
    {test, [
        {erl_opts, [nowarn_export_all]},
        {deps, [ {meck, "0.8.13"}
            ]}
    ]}
]}.

{erl_opts, [
    warnings_as_errors,
    warn_export_all
]}.

{xref_checks,[
    %% enable most checks, but avoid 'unused calls' which is often
    %% very verbose
    undefined_function_calls, undefined_functions, locals_not_used,
    deprecated_function_calls, deprecated_functions, deprecated_functions
]}.

{relx, [{release, {egoth, {git, long}},
     [egoth]},

	% {sys_config, "./config/dev_sys.config"},
	% {vm_args, "./config/dev_vm.args"},

	{dev_mode, true},
	{include_erts, false},

	{extended_start_script, true},

	{overlay, [{copy, "apps/service_discovery_postgres/priv/migrations/*", "sql/"}]}]}.
