Is there a way to let classes visible in multiple ...
# random
c
Is there a way to let classes visible in multiple modules? The
internal
modifier is only visible in a single module, this is sometimes not in line with my expectations.
When developing a library, I don’t want some classes or members to be exposed to users, but they can be visible in multiple modules in the library
e
Are you using Gradle? If so, moving these internal classes to a separate module and including them in your modules as
implementation
will make them only visible by your module and not by consumers of your module
Maven, on the other hand, exposes everything AFAIK
c
Yes, I using the Gradle. I never thought it could be like this! Thank you
👍 1