diff --git a/rebar.config.script b/rebar.config.script new file mode 100644 index 0000000..de2e595 --- /dev/null +++ b/rebar.config.script @@ -0,0 +1,15 @@ +{ok, VSN} = application:get_key(rebar, vsn), +[VSN1 | _] = string:tokens(VSN, "-"), +[Maj, Min, Patch] = string:tokens(VSN1, "."), +IsRebar3 = (list_to_integer(Maj) >= 3), + + +Rebar2Deps = [ + {cf, ".*", {git, "https://github.com/project-fifo/cf", {tag, "0.2.0"}}} + ], + +case IsRebar3 of + true -> CONFIG; + false -> + lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps}) +end. diff --git a/src/erlware_commons.app.src b/src/erlware_commons.app.src index 899d930..e155deb 100644 --- a/src/erlware_commons.app.src +++ b/src/erlware_commons.app.src @@ -1,6 +1,6 @@ {application,erlware_commons, [{description,"Additional standard library for Erlang"}, - {vsn,"0.16.1"}, + {vsn,"0.18.0"}, {modules,[]}, {registered,[]}, {applications,[kernel,stdlib]},