How do I add external jar dependencies from project folder "lib"

i use the following in but it doesn’t seem to add the jar files:

dependencies {

compile fileTree(dir: ‘lib’, includes: [’*.jar’]) }

Looks good so long jars live directly under the ‘lib’ folder. If there are subdirs involved you probably want the include to look: [’**/*.jar’]. If your lib contains only jars, get rid of the includes block.


That solution (in the original question) works for me. Thanks.