What I am trying to accomplish is copy a config folder ../../conf
from outside my project structure into my test resources directory in a specific package.
Customizing the sourceSets does not work for me cause it only lets me customize the srcDir and not how it is copied to the destination directory.
So sourceSets.test.resources.srcDir='../../conf'
is not an option. So my next try was customizing processTestResources like
processTestResources {
from '../../conf' into 'com/myspace/conf'
}
This however does not seem to take in to account the into
value. I still find the conf folder contents directly in build/resources/test
.
Any suggestions/recommendations ?