Current section

13 Versions

Jump to

Compare versions

3 files changed
+15 additions
-3 deletions
  @@ -29,4 +29,4 @@
29 29 {<<"GitHub">>,<<"https://github.com/clojerl/rebar3_clojerl">>}]}.
30 30 {<<"name">>,<<"rebar3_clojerl">>}.
31 31 {<<"requirements">>,[]}.
32 - {<<"version">>,<<"0.8.3">>}.
32 + {<<"version">>,<<"0.8.4">>}.
  @@ -1,6 +1,6 @@
1 1 {application,rebar3_clojerl,
2 2 [{description,"Compile clojerl projects"},
3 - {vsn,"0.8.3"},
3 + {vsn,"0.8.4"},
4 4 {registered,[]},
5 5 {applications,[kernel,stdlib]},
6 6 {env,[]},
  @@ -24,7 +24,7 @@ init(State) ->
24 24 , { desc
25 25 , "Build a release for the Clojerl project."
26 26 }
27 - , {opts, relx:opt_spec_list()}
27 + , {opts, options()}
28 28 ]
29 29 ),
30 30 {ok, rebar_state:add_provider(State, Provider)}.
  @@ -52,3 +52,15 @@ update_all_app_files(State) ->
52 52 AllPaths = DepsPaths ++ AppsPaths,
53 53 [rebar3_clojerl_utils:update_app_file(Dir)|| Dir <- AllPaths],
54 54 ok.
55 +
56 + %% @doc Return the options spec for the release command
57 + %%
58 + %% Attempts to get the options spec from two different functions to
59 + %% support latest changes in rebar3.
60 + -spec options() -> any().
61 + options() ->
62 + try
63 + relx:opt_spec_list()
64 + catch _:undef ->
65 + rebar_relx:opt_spec_list()
66 + end.