For Test Control to work I've placed this: //place the resources into the classesDir as described in https://deltaspike.apache.org/documentation/test-control.html#_gradle sourceSets { main { output.resourcesDir = output.classesDir } test { output.resourcesDir = output.classesDir } }
But this is going to be deprecated on gradle 5, so I tryied with: sourceSets { main { output.resourcesDir = new File(project.buildDir, '/classes/java/main') } test { output.resourcesDir = new File(project.buildDir, '/classes/java/test') } } gradle doesn't complains, but my jenkins nightly now is failing. Does anyone knows what is the correct solution? LA