%% -*- mode: erlang -*-
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 sts ft=erlang et

case erlang:function_exported(rebar3, main, 1) of
    true -> % rebar3
        CONFIG;
    false -> % rebar 2.x or older
        %% Rebuild deps, possibly including those that have been moved to
        %% profiles
        [{deps, [
            {rekt, {git, "git://github.com/nitrogen/rekt",  {branch, master}}},
            {stacktrace_compat, {git, "git://github.com/g-andrade/stacktrace_compat", {tag, "1.0.1"}}},
            {simple_bridge, {git, "git://github.com/nitrogen/simple_bridge", {branch, master}}},
            {nitro_cache, {git, "git://github.com/nitrogen/nitro_cache", {branch, master}}},
            {nprocreg, {git, "git://github.com/nitrogen/nprocreg", {branch, master}}},
            {qdate, {git, "git://github.com/choptastic/qdate", {branch, master}}}
        ]} | lists:keydelete(deps, 1, CONFIG)]
end.
