gradle中引用本地项目

例如在别的地方有一个 apiProject,里面有 apiModule,你想要引用,而不是复制到现有项目,那么

1.现有项目的settings.gradle下

include ':apiModule' project(':apiModule').projectDir = new File(settingsDir, '../apiProject/apiModule') 

2.现有项目moudle的build.gradle下

compile project(':apiModule')

猜你喜欢

转载自www.cnblogs.com/wanfeng/p/9108776.html
今日推荐