I have a project right now that straddles the line on framework and pluggable program, and am worried about the sheer number of dependancies that this program rely's on.
Currently I have this:
- Commons lang - Mainly for string utils and array utils
- slf4j - Logging facade
- slf4j-log4j - Redirects logging to log4j for GUI (note that the GUI is a module)
- log4j - Log4j itself for the above reason
- jpersist/EJP - Database abstraction layer
- PircBot - IRC layer
- A JDBC driver
- Mozilla Rhino - For Javascript plugins
In all that totals 7, even without the GUI unless you don't want any logging. For me who's trying to pass this off as "lightweight", this seems like way too much.
So my questions:
- Should I limit the amount of frameworks that I am using?
- How should I distribute it? Would an independent jar for being used in other programs and a big combined jar for a single program be okay?
- Is this many dependencies normal?