java - Facing issues in multi project build using gradle
问题描述
I have gradle multi-project(Java) build. My project structure is like below:
Root project 'Parent'
+--- Project ':Child1'
+--- Project ':Child2'
\--- Project ':Child3'
Project description: -Child2 is dependent on Child1. -Child3 is dependent on Child1 and Child2.
Each subproject has its own build.gradle file
build.gradle file of Child2 has below content:
apply plugin: 'java'
archivesBaseName = 'xyz'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile fileTree(dir: project.properties['dependency_jar_path'], include: '*.jar')
compile project(':Child1')
}
build.gradle file of Child3 has below content:
apply plugin: 'java'
archivesBaseName = 'abc'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile fileTree(dir: project.properties['dependency_jar_path'], include: '*.jar')
compile project(':Child1')
compile project(':Child2')
}
The problem that I am facing is Child1 and Child2 are compiling fine but Child3 is not compiling
解决方案
推荐阅读
- javascript - 在 HTML 字段中复制/粘贴字符串
- javascript - Discord.js 将单词嵌入
- ios - iOS 中的内存泄漏 Kotlin Native 库
- c# - Sharepoint online - 不返回列表中特定视图中的项目
- javascript - 是否可以让 loading = 'lazy' 在X 轴上工作?
- reactjs - 可以在同一 Redux 状态的不同分支中重用的 Reducer?
- python - 是否可以从 QListView 重新排序 QSqlTableModel?
- laravel - 无法通过getter vuex vuejs访问状态
- c++ - 优化(重新编译)继承每个派生类的虚方法
- python - 使用 unittest 从函数运行测试