aboutsummaryrefslogtreecommitdiffstats
path: root/rebar.config
diff options
context:
space:
mode:
Diffstat (limited to 'rebar.config')
-rw-r--r--rebar.config25
1 files changed, 21 insertions, 4 deletions
diff --git a/rebar.config b/rebar.config
index bb179ea..762d6df 100644
--- a/rebar.config
+++ b/rebar.config
@@ -1,9 +1,9 @@
%% -*- mode: Erlang; fill-column: 80; comment-column: 75; -*-
%% Dependencies ================================================================
-{deps, [{erlware_commons, "0.21.0"},
+{deps, [{erlware_commons, "1.0.0"},
{providers, "1.6.0"},
{getopt, "0.8.2"},
- {cf, "0.2.1"},
+ {cf, "0.2.2"},
{bbmustache, "1.0.4"}
]}.
@@ -17,10 +17,12 @@
[{platform_define, "^[0-9]+", namespaced_types},
{platform_define, "^1[8|9]", rand_module},
{platform_define, "^2", rand_module},
- no_debug_info,
warnings_as_errors,
inline]}.
+%% Use OTP 18+ when dialyzing relx
+{dialyzer, [{warnings, [unknown]}]}.
+
%% EUnit =======================================================================
{eunit_opts,
[{report, {eunit_surefire, [{dir, "."}]}}]}.
@@ -29,7 +31,22 @@
{profiles, [{dev, [{plugins, [rebar3_neotoma_plugin]}]},
- {test, [{erl_opts, [debug_info]}]}
+ {test, [{erl_opts, [nowarn_export_all, debug_info]}]},
+
+ {dialyze, [{overrides, [{add, erlware_commons, [{erl_opts, [debug_info]}]},
+ {add, providers, [{erl_opts, [debug_info]}]},
+ {add, getopt, [{erl_opts, [debug_info]}]},
+ {add, bbmustache, [{erl_opts, [debug_info]}]},
+ {add, cf, [{erl_opts, [debug_info]}]}]},
+ {erl_opts, [debug_info]}]},
+ {escript, [
+ {overrides, [{add, erlware_commons, [{erl_opts, [no_debug_info]}]},
+ {add, providers, [{erl_opts, [no_debug_info]}]},
+ {add, getopt, [{erl_opts, [no_debug_info]}]},
+ {add, bbmustache, [{erl_opts, [no_debug_info]}]},
+ {add, cf, [{erl_opts, [no_debug_info]}]}]},
+ {erl_opts, [no_debug_info]}
+ ]}
]}.
{overrides, [{override, erlware_commons, [