As I understand, using modules allows us to control some dependencies.
I mean that we can allow one module to interact with another one but not vise versa. We also can make some reusable things and we can make deploying easier, if, for example, put all tests stuff into a separate module and won t deploy it to production.
I haven t ever use modules but if described things are really possible I d like to know how to make them.
- How to set dependencies?
- How to do this without IDE and any tools?
- How to do it in IntelliJ IDEA?