I’m new to Gradle. I’m trying to run some tests but they fail with messages showing that the entity classes are not mapped. When I explicitly map the classes in persistence.xml everything works fine. I did some research and found that adding theses lines to the build script would solve the problem:
sourceSets.main.output.resourcesDir = sourceSets.main.output.classesDir
sourceSets.test.output.resourcesDir = sourceSets.test.output.classesDir
but it simply didn’t work for me. I still get the errors if I don’t specify the classes in the deployment descriptor.
What could be wrong?