Categories
java

gradle compile tree

gradle import local jar as dependency

dependencies{
// 依赖某个jar文件
implementation files(‘lib/xxx.jar’)


// 依赖libs目录下所有以.jar结尾的文件
implementation fileTree(dir: ‘lib’, include: [‘.jar’])

// 依赖libs目录下除了xxx.jar以外的所有以.jar结尾的文件 implementation fileTree(dir: ‘lib’, exclude: [‘xxx.jar’], include: [‘.jar’])

}

Leave a Reply