Including of jars from Flat repositories into dependencies

How do jars to include in dependencies from flat/ repositories get specified in the dependencies section - can we use glob expressions (include all jars in lib/), or excludes/include regular expressions?

The syntax for flatdir dependencies is the same as for regular repository dependencies. If you want to include by glob, you need to use something like ‘compile fileTree(“lib”) { include “**/Foo*” }’, rather than flatdir dependencies.