From cd3e26f817b96f6b90e1a8b209d9af50905c9768 Mon Sep 17 00:00:00 2001 From: Michael Vorburger Date: Tue, 22 Jul 2014 01:22:06 +0200 Subject: [PATCH] Fixed 'Not an managed type:' for JPA @Entity on CLI Gradle tests (PLEASE REVIEW - ok?) --- mifosng-provider/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mifosng-provider/build.gradle b/mifosng-provider/build.gradle index 4ae27257d..38520c3e8 100644 --- a/mifosng-provider/build.gradle +++ b/mifosng-provider/build.gradle @@ -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 {