I have a multi project build, which has 5 sub projects like a,b,c,d and e. project b depends on a, c depends on b and d depends on c. project e is building war which is includes a,b,c,d. build is compiling all sub projects individually and also compile once again when it’s creating war. I just want to reuse the sub project jar once they are build when creaing war instead of compiling them again.
Hi,
I have added all 4 subprojects in the war project since it’s failing to create the war due to the dependency issue.
configure(subprojects.find { it.name == ‘e’ }) {
apply plugin: ‘war’
dependencies {
implementation project(’:a’)
implementation project(’:b’)
implementation project(’:c’)
implementation project(’:d’)
}
}