I’m working on a multi-module java project. The project will consist of several Java modules. We need encapsulation of the internal part of the module and allocation of the external API for use in external modules.
Java has native technology Jigsaw. Jigsaw allows encapsulate internal packages. And it’s native and work in compile part. And it’s easy to use (I need only write module-info.java)
I would like use Jigsaw in project, but I have doubts:
- Jigsaw exists from java 9, but it doesn’t widely used in the java-community. Many projects doesn’t use it. Many libs doesn’t exist module-info.java
- There are very few articles about Jigsaw on the Internet and are not discussed at the conferences.
- Technology is not popular and I’m worried that it may no longer be supported in Java
My question:
Does it make sense to use this technology in 2024? Do you use it in your projects? What are the prospects for the Jigsaw?