summaryrefslogtreecommitdiff
path: root/rebar.config
blob: 276acff48df926a66823c324f50bc085085c9498 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 ft=erlang et

{deps, [{erlware_commons,     "0.18.0"},
        {ssl_verify_hostname, "1.0.5"},
        {certifi,             "0.3.0"},
        {providers,           "1.6.0"},
        {getopt,              "0.8.2"},
        {bbmustache,          "1.0.4"},
        {relx,                "3.9.0"},
        {cf,                  "0.2.1"},
        {cth_readable,        "1.1.0"},
        {eunit_formatters,    "0.3.1"}]}.

{escript_name, rebar3}.
{escript_emu_args, "%%! +sbtu +A0\n"}.
%% escript_incl_extra is for internal rebar-private use only.
%% Do not use outside rebar. Config interface is not stable.
{escript_incl_extra, [{"relx/priv/templates/*", "_build/default/lib/"},
                      {"rebar/priv/templates/*", "_build/default/lib/"}]}.

{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
            {platform_define, "^R1[4|5]", no_list_dir_all},
            no_debug_info,
            warnings_as_errors]}.

%% Use OTP 18+ when dialyzing rebar3
{dialyzer, [{warnings, [unknown]}]}.

%% Profiles
{profiles, [{test, [
                   {deps, [{meck, "0.8.2"}]},
                   {erl_opts, [debug_info]}
                   ]
            },

            {bootstrap, []},

            {dialyze, [{erl_opts, [debug_info]}]}
           ]}.

%% Overrides
{overrides, [{override, erlware_commons, [
                                         {erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
                                                     {platform_define, "^R1[4|5]", deprecated_crypto},
                                                     no_debug_info,
                                                     warnings_as_errors]},
                                         {deps, []}, {plugins, []},
                                         {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]}
                                         ]},
            {override, bbmustache, [
                                   {erl_opts, [no_debug_info,
                                              {platform_define, "^[0-9]+", namespaced_types}]},
                                   {deps, []}, {plugins, []},
                                   {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]}
                                   ]},
            {override, getopt, [{erl_opts, [no_debug_info]},
                               {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]}]},
            {override, providers, [{erl_opts, [no_debug_info]},
                                   {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]}]},
            {override, relx, [{erl_opts, [{platform_define, "^[0-9]+", namespaced_types},
                                          {platform_define, "^R1[4|5]", deprecated_crypto},
                                          no_debug_info,
                                          warnings_as_errors]},
                              {profiles, [{dialyze, [{erl_opts, [debug_info]}]}]}
                             ]}
            ]}.