How to use local .jar files for compilation

If you have many .jar files in the "lib" folder of your project, you can simply write:

compile.with Dir[_("lib/*.jar")]