%%
%% Copyright (c) 2020-2023 Fred Dushin <fred@dushin.net>
%% All rights reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%%     http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%%
%% SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
%%
{erl_opts, [debug_info]}.

{deps, [
    {atomvm_packbeam, "0.7.4"},
    {uf2tool, "1.1.0"}
]}.

{ex_doc, [
    {source_url, <<"https://github.com/atomvm/atomvm_rebar3_plugin">>},
    {extras, [
        <<"README.md">>,
        <<"CHANGELOG.md">>,
        <<"UPDATING.md">>,
        <<"LICENSE">>,
        <<"CONTRIBUTING.md">>,
        <<"CODE_OF_CONDUCT.md">>
    ]},
    {main, <<"README.md">>},
    {output, "docs"},
    {api_reference, false},
    {skip_undefined_reference_warnings_on, ["README.md"]}
]}.

{profiles, [
    {doc, [
        {plugins, [rebar3_ex_doc]}
    ]},
    {publish, [
        {plugins, [rebar3_hex, rebar3_ex_doc]},
        {hex, [
            {doc, #{provider => ex_doc}}
        ]}
    ]}
]}.
