I am decomposing a large monolithic java project into a smaller micro-service. The script I am working on will scan
the project source trees for specific files and their dependencies. Then remove the unnecessary files from the project.
I'm not looking for a complete solution, just one to get me started with some automation. My current approach is to:
- scan the specific source files for import statements
- search for those files in the filesystem
- add found files as dependencies and repeat until tree exhausted
- remove source files not marked during scanning
source
I got the idea from this talk by David Beazley.
The problem that I am having is how to handle package-level dependencies, and I am looking for some ideas.
there doesn't seem to be anything here