Our module, a maven module named Z depends on A.
A depends on B which depends on C, D
Is there a way to limit in our module Z access only to code/packages directly available in A, so that a build will fail only if Z accesses B, C or D ?
Module/jar B should still be able to access C, D.
How is this done in error-prone?
Examples valued as documentation on error-prone is lacking.
Other questions regarding error-prone of interest:
- How can I limit access from another package for another package?
- Is it possible to limit access of a class to another set of packages, modules?
- What versions of Java does error-prone currently work with?
- Are there any books, documents on error-prone?
Examples valued.