https://github.com/benoitc/rebar3_path_deps
A rebar plugin to specify path dependencies.
https://github.com/benoitc/rebar3_path_deps
Last synced: 11 months ago
JSON representation
A rebar plugin to specify path dependencies.
- Host: GitHub
- URL: https://github.com/benoitc/rebar3_path_deps
- Owner: benoitc
- License: apache-2.0
- Created: 2018-10-16T21:14:47.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-07T00:47:28.000Z (over 1 year ago)
- Last Synced: 2025-04-09T10:07:22.507Z (11 months ago)
- Language: Erlang
- Homepage:
- Size: 17.6 KB
- Stars: 22
- Watchers: 6
- Forks: 11
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rebar3_path_deps
=====
A rebar plugin to specify path dependencies.
Over time, your project is growing significantly in size! It’s gotten to the point that
you probably want to split out a separate OTP applications for others to use.
This plugin add to rebar the supports of path dependencies which are typically sub-applications
that live within one repository.
Build
-----
$ rebar3 compile
Use
---
Let’s start off by making a new OTP application `hello_utils` inside of your project `hello_world`:
# inside of hello-world/
$ rebar3 new app hello_utils
This will create a new folder hello_utils inside of which a `rebar.config` and `src` folder are ready to be useed.
In order to tell Rebar about this, open up `hello_world/rebar.config` and add hello_utils to your dependencies:
```erlang
{deps, [
{hello_utils, {path, "hello_utils"}},
..
]
```
This tells Rebar that we depend on an application called `hello_utils` which is found in the `hello_utils`
folder (relative to the `rebar.config` file it’s written in).
and then add the plugin to your `rebar.config`:
{plugins, [
rebar3_path_deps
]}.
Then just compile your application
$ rebar3 compile
===> Compiling rebar3_path_deps
===> Verifying dependencies...
===> Fetching hello_utils ({path,"hello_utils",
{mtime,<<"2018-10-17T11:21:18Z">>}})
===> Compiling hello_utils
===> Compiling hello_world