rebar version 2 backwards compatibility

This commit is contained in:
Denis Justinek 2016-03-04 13:07:01 +01:00
parent ea521b13ba
commit ba2f7f73e8
2 changed files with 10 additions and 5 deletions

View File

@ -13,11 +13,6 @@
"src/msgpack_ext.erl"
]}.
{plugins, [
{rebar3_eqc, ".*", {git, "https://github.com/kellymclaughlin/rebar3-eqc-plugin.git", {tag, "0.0.8"}}},
rebar3_hex
]}.
%% {port_sources, ["c_src/*.c"]}.
%% {port_env, [
%% %% Make sure to set -fPIC when compiling leveldb

10
rebar.config.script Normal file
View File

@ -0,0 +1,10 @@
case application:get_key(rebar, vsn) of
{ok, "3."++_} ->
PLUGINS = {plugins, [
{rebar3_eqc, ".*", {git, "https://github.com/kellymclaughlin/rebar3-eqc-plugin.git", {tag, "0.0.8"}}},
rebar3_hex
]},
lists:keystore(plugins, 1, CONFIG, PLUGINS);
_ ->
CONFIG
end.