Hello, so I have a couple of files under parentProject/projectA/src/main/resources
that I would like to access while running tests in parentProject/projectB
. The best I could come up with is this:
sourceSets {
main {
test {
resources {
srcDirs project(':projectA').sourceSets.main.resources.srcDirs
}
}
}
}
but when I do that I get a Duplicate content roots detected
error in IntelliJ so it seems that I am doing this wrong. Is there a better way to do this?
Thanks!