欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

gradle依赖本地jar包

程序员文章站 2022-04-28 22:51:13
...
  1. 代码:compile fileTree(dir:'../lib',include:['*.jar'])
dependencies {
	api "org.springframework.boot:spring-boot-starter-web"
	api "org.springframework.boot:spring-boot-starter-amqp"
	
	api "org.apache.shiro:shiro-core"
	
	//implementation project (":va-domain")
	//implementation project (":va-feign-client")
    //compile group: 'org.apache.commons', name: 'commons-lang', version: '2.6'
    // 依赖本地jar包防止gradle build失败
    compile fileTree(dir:'../lib',include:['*.jar'])
}