Skip to content

Commit ba2f7f7

Browse files
author
Denis Justinek
committed
rebar version 2 backwards compatibility
1 parent ea521b1 commit ba2f7f7

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

rebar.config

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
"src/msgpack_ext.erl"
1414
]}.
1515

16-
{plugins, [
17-
{rebar3_eqc, ".*", {git, "https://github.com/kellymclaughlin/rebar3-eqc-plugin.git", {tag, "0.0.8"}}},
18-
rebar3_hex
19-
]}.
20-
2116
%% {port_sources, ["c_src/*.c"]}.
2217
%% {port_env, [
2318
%% %% Make sure to set -fPIC when compiling leveldb

rebar.config.script

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
case application:get_key(rebar, vsn) of
2+
{ok, "3."++_} ->
3+
PLUGINS = {plugins, [
4+
{rebar3_eqc, ".*", {git, "https://github.com/kellymclaughlin/rebar3-eqc-plugin.git", {tag, "0.0.8"}}},
5+
rebar3_hex
6+
]},
7+
lists:keystore(plugins, 1, CONFIG, PLUGINS);
8+
_ ->
9+
CONFIG
10+
end.

0 commit comments

Comments
 (0)