%% -*- erlang -*-
IsRebar3 = erlang:function_exported(rebar3, main, 1),

Rebar2Deps =
  [
   {splay_tree, ".*", {git, "https://github.com/sile/erl-splay-tree.git", {tag, "1.0.1"}}},
   {amf, ".*", {git, "https://github.com/sile/erl-amf.git", {tag, "0.1.4"}}}
  ],

case IsRebar3 of
    true  -> CONFIG;
    false -> lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps})
end.
