Fixed 'Not an managed type:' for JPA @Entity on CLI Gradle tests (PLEASE REVIEW - ok?)

This commit is contained in:
Michael Vorburger
2014-07-22 01:22:06 +02:00
parent f4483ab240
commit cd3e26f817
+3
View File
@@ -228,6 +228,9 @@ tomcatRunWar {
configFile = file('src/test/resources/META-INF/context.xml')
}
/* http://stackoverflow.com/questions/19653311/jpa-repository-works-in-idea-and-production-but-not-in-gradle */
sourceSets.main.output.resourcesDir = sourceSets.main.output.classesDir
sourceSets.test.output.resourcesDir = sourceSets.test.output.classesDir
sourceSets {
integrationTest {