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


(Ziad El-Jayyousi) #1

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

dependencies {

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


(Szczepan Faber) #2

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.

Cheers!


(Jon Austen) #3

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