diff options
author | Anton Lavrik <alavrik@piqi.org> | 2012-10-11 00:19:32 -0500 |
---|---|---|
committer | Anton Lavrik <alavrik@piqi.org> | 2012-10-11 02:06:08 -0500 |
commit | 0b833391ed32d757a4617246435ea9b257e3ad2b (patch) | |
tree | 0305bc69fa5529021d112eb979e1d496bb4f7901 /rebar.config.sample | |
parent | 32e67ef55ef6c4655d31568054d0ea3a8c38b55e (diff) | |
download | rebar-0b833391ed32d757a4617246435ea9b257e3ad2b.tar.gz |
Add support for non-Erlang/OTP (raw) dependencies
Introduce a new 'raw' option for dependency specs in rebar.config file.
For example:
{deps,
{dependency_name, "1.0.*",
{git, "<...>", {branch, "master"}},
[raw]
}
]}.
When this option is specified, rebar does not require the dependency to
have a standard Erlang/OTP layout which assumes presence of either
"src/dependency_name.app.src" or "ebin/dependency_name.app" files.
'raw' dependencies can still contain 'rebar.config' and even can have
the proper OTP directory layout, but they won't be compiled.
Only a subset of rebar commands will be executed on the 'raw'
subdirectories:
get-deps, update-deps, check-deps, list-deps and delete-deps.
Diffstat (limited to 'rebar.config.sample')
-rw-r--r-- | rebar.config.sample | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/rebar.config.sample b/rebar.config.sample index 4ed815a..fac55af 100644 --- a/rebar.config.sample +++ b/rebar.config.sample @@ -138,7 +138,20 @@ {deps, [application_name, {application_name, "1.0.*"}, {application_name, "1.0.*", - {git, "git://github.com/basho/rebar.git", {branch, "master"}}}]}. + {git, "git://github.com/basho/rebar.git", {branch, "master"}}}, + +%% Dependencies can be marked as 'raw'. Rebar does not require such dependencies +%% to have a standard Erlang/OTP layout which assumes the presence of either +%% "src/dependency_name.app.src" or "ebin/dependency_name.app" files. +%% +%% 'raw' dependencies can still contain 'rebar.config' and even can have the +%% proper OTP directory layout, but they won't be compiled. +%% +%% Only a subset of rebar commands will be executed on the 'raw' subdirectories: +%% get-deps, update-deps, check-deps, list-deps and delete-deps. + {application_name, "", + {git, "git://github.com/basho/rebar.git", {branch, "master"}}, + [raw]}]}. %% == Subdirectories == |