If you have many .jar files in the "lib" folder of your project, you can simply write:
compile.with Dir[_("lib/*.jar")]