基本方式
dependencies {
compile group: 'xx.xxx', name: 'xxxx', version: version
}
加载本地jar包
dependencies {
compile files('/ss/sss/xxx.jar')
}
加载本地某个目录下的所有jar包
dependencies {
compile fileTree(dir:'F:\\work\\FixBug\\lib',include:['*.jar'])
}
排除传递依赖中的某些依赖
compile (group: 'xx.xx', name: 'zzz', version: version){
exclude group: 'io.netty', module: 'netty-common'
}
网友评论