I\'m developing a multi-module project with gradle/intellij-idea, and here is the structure of my project home:
project/
sub-project-1
/main/resources
You need to choose the project which will hold your resources. All the other projects that require those resources, will add them to the resources component of the sourceSets.
sourceSets {
data {
resources {
srcDir "${project(':data').projectDir}/src/main/resources"
include "your_pattern_here**"
}
}
main {
resources {
srcDirs += [ data.resources ]
}
}
}