Actually, is seems that I was wrong after all, I could not move the testresources to a location which is good.
I've checked in build.gradle how is it done. The relevant part is this:
/* test folders are not part of jar but used by unit tests */
def testfolders = ['testresources/', 'testdata/']
jar {
projectDirInputsExcludes << '.*'
projectDirInputsExcludes += testfolders
}
test {
testLogging {
exceptionFormat 'full'
}
inputs.files fileTree(projectDir) {
include testfolders
exclude {
def f = it.file
if (f.directory && f.list().length == 0) {
return true
}
try {
return "git check-ignore ${f}".execute().waitFor() == 0
} catch (Exception e) {
return false
}
}
}
How could we replicate this behaviour?
It would also worth checking if the situation regarding these test is the same in version 3.5.0?