I have a multi-project gradle build containing 3 projects: A
, B
and C
.
A
and B
depends on C
.
C
has a file myconfig.xml
in its resources
folder that I would like to include as resource in war generated for A
and B
.
A -- project type - WAR
-- depends on - C
B -- project type - WAR
-- depends on - C
C -- project type - JAVA
\_ src\main\resources
\_ myconfig.xml
However, simply having C as a dependency for A & B doesnt seem to do that. The myconfig.xml
file is not present in the war file's WBE-INF\classes
folder. It is indeed present in C.jar
file but that is not where its needed.
How do i share the resources folder of C
such that its in the war file of A
and B
?