|
1 | 1 | %% -*- mode: erlang -*-
|
2 | 2 | {deps,
|
3 |
| - [ %% not all plugins have to depend on emqx |
4 |
| - %% but if they do, use git_subdir in the default profile |
5 |
| - {emqx, {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.1.4"}, "apps/emqx"}} |
6 |
| - , {emqx_ctl, {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.1.4"}, "apps/emqx_ctl"}} |
7 |
| - , {emqx_utils, {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.1.4"}, "apps/emqx_utils"}} |
8 |
| - , {emqx_durable_storage, {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.1.4"}, "apps/emqx_durable_storage"}} |
9 |
| - %% this is my plugin's dependency |
10 |
| - , {map_sets, "1.1.0"} |
11 |
| - , {eredis_cluster, {git, "https://github.com/emqx/eredis_cluster", {tag, "0.8.3"}}} |
12 |
| - , {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "v0.4.2"}}} |
13 |
| - ]}. |
| 3 | + [%% not all plugins have to depend on emqx |
| 4 | + %% but if they do, use git_subdir in the default profile |
| 5 | + {emqx, {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.1.4"}, "apps/emqx"}}, |
| 6 | + {emqx_ctl, |
| 7 | + {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.1.4"}, "apps/emqx_ctl"}}, |
| 8 | + {emqx_utils, |
| 9 | + {git_subdir, "https://github.com/emqx/emqx.git", {tag, "v5.1.4"}, "apps/emqx_utils"}}, |
| 10 | + {emqx_durable_storage, |
| 11 | + {git_subdir, |
| 12 | + "https://github.com/emqx/emqx.git", |
| 13 | + {tag, "v5.1.4"}, |
| 14 | + "apps/emqx_durable_storage"}}, |
| 15 | + %% this is my plugin's dependency |
| 16 | + {map_sets, "1.1.0"}, |
| 17 | + {eredis_cluster, {git, "https://github.com/emqx/eredis_cluster", {tag, "0.8.3"}}}, |
| 18 | + {ecpool, {git, "https://github.com/emqx/ecpool", {tag, "v0.4.2"}}}]}. |
14 | 19 |
|
15 |
| -{plugins, [ |
16 |
| - {emqx_plugrel, {git, "https://github.com/emqx/emqx_plugrel.git", {tag, "0.3.0"}}} |
17 |
| -]}. |
| 20 | +{plugins, |
| 21 | + [{emqx_plugrel, {git, "https://github.com/emqx/emqx_plugrel.git", {tag, "0.3.0"}}}]}. |
18 | 22 |
|
19 | 23 | {erl_opts, [debug_info]}.
|
20 | 24 |
|
21 |
| -{relx, [ {release, {ubidots_emqx_plugin, "1.0.0"}, %% this is the release version, different from app vsn in .app file |
22 |
| - [ ubidots_emqx_plugin |
23 |
| - , map_sets |
24 |
| - ]} |
25 |
| - , {dev_mode, false} |
26 |
| - , {include_erts, false} |
27 |
| - ]}. |
| 25 | +{relx, |
| 26 | + [{release, |
| 27 | + {ubidots_emqx_plugin, |
| 28 | + "1.0.0"}, %% this is the release version, different from app vsn in .app file |
| 29 | + [ubidots_emqx_plugin, map_sets]}, |
| 30 | + {dev_mode, false}, |
| 31 | + {include_erts, false}]}. |
| 32 | + |
| 33 | +{project_plugins, [rebar3_format]}. |
28 | 34 |
|
29 | 35 | %% Additional info of the plugin
|
30 | 36 | {emqx_plugrel,
|
31 |
| - [ {authors, ["ubidots"]} |
32 |
| - , {builder, |
33 |
| - [ {name, "ubidots"} |
34 |
| - , {contact, "devel@ubidots.com"} |
35 |
| - , {website, "http://ubidots.com"} |
36 |
| - ]} |
37 |
| - , {repo, "https://github.com/jdavidagudelo/emqx-plugin-template-test.git"} |
38 |
| - , {functionality, ["Demo"]} |
39 |
| - , {compatibility, |
40 |
| - [ {emqx, "~> 5.0"} |
41 |
| - ]} |
42 |
| - , {description, "Another amazing EMQX plugin."} |
43 |
| - ] |
44 |
| -}. |
| 37 | + [{authors, ["ubidots"]}, |
| 38 | + {builder, |
| 39 | + [{name, "ubidots"}, {contact, "devel@ubidots.com"}, {website, "http://ubidots.com"}]}, |
| 40 | + {repo, "https://github.com/jdavidagudelo/emqx-plugin-template-test.git"}, |
| 41 | + {functionality, ["Demo"]}, |
| 42 | + {compatibility, [{emqx, "~> 5.0"}]}, |
| 43 | + {description, "Another amazing EMQX plugin."}]}. |
45 | 44 |
|
46 |
| -{xref_checks,[undefined_function_calls,undefined_functions,locals_not_used, |
47 |
| - deprecated_function_calls,warnings_as_errors,deprecated_functions]}. |
| 45 | +{xref_checks, |
| 46 | + [undefined_function_calls, |
| 47 | + undefined_functions, |
| 48 | + locals_not_used, |
| 49 | + deprecated_function_calls, |
| 50 | + warnings_as_errors, |
| 51 | + deprecated_functions]}. |
0 commit comments