compile fileTree(dir: './src/main/resources/lib', include: '*.jar')
将jar包放到这个目录下./src/main/resources/lib就行了