views:

273

answers:

1

What are the minimum dependencies required to just use Spring's dependency injection (core framework only)? I'm using Spring for a standalone application, and I'd like to minimize the number of dependencies that I have to ship with the application.

I suppose I could systematically remove a Jar and see if the application breaks, but it would be much better if someone had a definitive answer.

Oh, and I'm using Spring 2.5.

+6  A: 

Check out the readme.txt that comes with the download of Spring 2.5.

Assuming you don't have AOP, JDBC, Transactions, or ORM, then your best bet is probably:

  • spring-core
  • spring-beans
  • spring-context
toolkit
Thanks. The readme.txt clearly lists the dependencies for the spring jars. Looks like I can get away with just the three jars you mentioned, plus Commons Logging.
Jim Hurne